@domino-sdk/relay 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
3
- export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
- import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, e as walletProofSchema, A as AuthProvider } from './settings-BrC6C9yl.js';
5
- export { f as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, g as LeaderboardDefinition, h as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, i as ResourceOption, j as ResourceSource, k as SettingField, l as SettingsValues, S as SolanaBalance, W as WalletConnection, m as accountConnectionSchema, n as authProviderSchema, p as budgetSchema, q as compatibleSettingKinds, t as completionKeySchema, u as completionPolicySchema, d as defineLeaderboard, b as defineReferral, c as discord, v as discordMemberInputSchema, x as discordMemberSchema, y as discordMessageInputSchema, z as discordMessageSchema, C as discordReactionSchema, E as discordServerSchema, F as integrationProviderSchema, G as leaderboardArtifactSchema, H as leaderboardDefinitionSchema, J as leaderboardExclusionSchema, K as leaderboardGroupSchema, M as leaderboardPageSchema, N as leaderboardPreviewSchema, T as leaderboardQuerySchema, U as leaderboardRowSchema, V as leaderboardWindowSchema, X as missingResourceSettings, Y as observationInputSchema, Z as observationReceiptSchema, _ as observationSchema, o as observationTriggerSchema, $ as parseSettings, a0 as pointsAccountSchema, a1 as pointsEntrySchema, a2 as pointsMutationSchema, a3 as pointsResultSchema, a4 as projectIntegrationSchema, a5 as publishedLeaderboardSchema, a6 as publishedReferralSchema, a7 as quizChoiceSchema, a8 as quizContentSchema, a9 as quizQuestionSchema, aa as quizQuestionsSchema, ab as referralAccountSchema, ac as referralArtifactSchema, ad as referralControlSchema, ae as referralDefinitionSchema, af as referralHistorySchema, ag as referralManagementSchema, ah as referralRelationshipSchema, ai as referralSummarySchema, aj as resourceOptionsSchema, ak as resourceRequestSchema, al as resourceSourceSchema, am as settingFieldSchema, s as settings, an as settingsFieldsSchema, ao as settingsValuesSchema, ap as solanaAddressSchema, aq as solanaBalanceSchema, ar as walletChallengeSchema, as as walletConnectionSchema } from './settings-BrC6C9yl.js';
3
+ export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, e as walletProofSchema, f as AuthProvider } from './settings-BA8XjT4m.js';
5
+ export { g as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, h as LeaderboardDefinition, i as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, j as ResourceOption, k as ResourceSource, l as SettingField, m as SettingsValues, S as SolanaBalance, W as WalletConnection, n as accountConnectionSchema, q as authProviderSchema, t as budgetSchema, u as compatibleSettingKinds, v as completionKeySchema, x as completionPolicySchema, d as defineLeaderboard, b as defineReferral, c as discord, y as discordMemberInputSchema, z as discordMemberSchema, C as discordMessageInputSchema, E as discordMessageSchema, F as discordReactionSchema, G as discordServerSchema, H as integrationProviderSchema, J as leaderboardArtifactSchema, K as leaderboardAuthoringSchema, M as leaderboardDefinitionSchema, N as leaderboardExclusionSchema, T as leaderboardGroupSchema, U as leaderboardPageSchema, V as leaderboardPreviewSchema, X as leaderboardQuerySchema, Y as leaderboardRowSchema, Z as leaderboardWindowSchema, _ as missingResourceSettings, $ as observationInputSchema, a0 as observationReceiptSchema, a1 as observationSchema, o as observationTriggerSchema, a2 as parseSettings, p as pointLedgers, a3 as pointsAccountSchema, a4 as pointsEntrySchema, a5 as pointsMutationSchema, a6 as pointsResultSchema, a7 as projectIntegrationSchema, a8 as publishedLeaderboardSchema, a9 as publishedReferralSchema, aa as quizChoiceSchema, ab as quizContentSchema, ac as quizQuestionSchema, ad as quizQuestionsSchema, ae as referralAccountSchema, af as referralArtifactSchema, ag as referralAuthoringSchema, ah as referralControlSchema, ai as referralDefinitionSchema, aj as referralHistorySchema, ak as referralManagementSchema, al as referralRelationshipSchema, am as referralSummarySchema, an as resourceOptionsSchema, ao as resourceRequestSchema, ap as resourceSourceSchema, aq as settingFieldSchema, s as settings, ar as settingsFieldsSchema, as as settingsValuesSchema, at as solanaAddressSchema, au as solanaBalanceSchema, av as walletChallengeSchema, aw as walletConnectionSchema } from './settings-BA8XjT4m.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -190,15 +190,16 @@ type ProgressObserver = {
190
190
  };
191
191
 
192
192
  declare const interactionSchema: z.ZodEnum<{
193
+ staff: "staff";
193
194
  quiz: "quiz";
194
195
  photo: "photo";
195
- staff: "staff";
196
196
  automatic: "automatic";
197
197
  claim: "claim";
198
198
  }>;
199
199
  type QuestInteraction = z.infer<typeof interactionSchema>;
200
200
  declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
201
201
  declare const questTypeVersionSchema: z.ZodObject<{
202
+ key: z.ZodOptional<z.ZodString>;
202
203
  id: z.ZodString;
203
204
  version: z.ZodString;
204
205
  code: z.ZodString;
@@ -230,6 +231,11 @@ declare const questTypeVersionSchema: z.ZodObject<{
230
231
  discord: "discord";
231
232
  }>>>;
232
233
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
234
+ kind: z.ZodLiteral<"point-ledger">;
235
+ default: z.ZodString;
236
+ label: z.ZodString;
237
+ description: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strict>, z.ZodObject<{
233
239
  kind: z.ZodLiteral<"datetime">;
234
240
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
235
241
  label: z.ZodString;
@@ -238,6 +244,9 @@ declare const questTypeVersionSchema: z.ZodObject<{
238
244
  kind: z.ZodLiteral<"resource">;
239
245
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
240
246
  source: z.ZodUnion<readonly [z.ZodObject<{
247
+ provider: z.ZodLiteral<"domino">;
248
+ resource: z.ZodLiteral<"point-ledger">;
249
+ }, z.core.$strict>, z.ZodObject<{
241
250
  provider: z.ZodLiteral<"discord">;
242
251
  resource: z.ZodLiteral<"channel">;
243
252
  types: z.ZodArray<z.ZodEnum<{
@@ -362,8 +371,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
362
371
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
363
372
  id: z.ZodString;
364
373
  scope: z.ZodEnum<{
365
- member: "member";
366
374
  project: "project";
375
+ member: "member";
367
376
  }>;
368
377
  period: z.ZodEnum<{
369
378
  lifetime: "lifetime";
@@ -386,10 +395,27 @@ declare const questTypeVersionSchema: z.ZodObject<{
386
395
  }, z.core.$strip>;
387
396
  declare const collectionSlotSchema: z.ZodObject<{
388
397
  id: z.ZodString;
398
+ key: z.ZodOptional<z.ZodString>;
389
399
  title: z.ZodString;
390
400
  }, z.core.$strict>;
401
+ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
402
+ title: z.ZodString;
403
+ key: z.ZodOptional<z.ZodString>;
404
+ id: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>, z.ZodTransform<Omit<{
406
+ title: string;
407
+ key?: string | undefined;
408
+ id?: string | undefined;
409
+ }, "id" | "key"> & {
410
+ key: string;
411
+ }, {
412
+ title: string;
413
+ key?: string | undefined;
414
+ id?: string | undefined;
415
+ }>>;
391
416
  declare const questCollectionSchema: z.ZodObject<{
392
417
  id: z.ZodString;
418
+ key: z.ZodOptional<z.ZodString>;
393
419
  title: z.ZodString;
394
420
  quests: z.ZodArray<z.ZodString>;
395
421
  }, z.core.$strict>;
@@ -437,6 +463,7 @@ declare const questDraftChangesSchema: z.ZodObject<{
437
463
  }, z.core.$strict>>;
438
464
  collections: z.ZodArray<z.ZodObject<{
439
465
  id: z.ZodString;
466
+ key: z.ZodOptional<z.ZodString>;
440
467
  title: z.ZodString;
441
468
  quests: z.ZodArray<z.ZodString>;
442
469
  }, z.core.$strict>>;
@@ -469,6 +496,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
469
496
  }, z.core.$strict>>;
470
497
  collections: z.ZodArray<z.ZodObject<{
471
498
  id: z.ZodString;
499
+ key: z.ZodOptional<z.ZodString>;
472
500
  title: z.ZodString;
473
501
  quests: z.ZodArray<z.ZodString>;
474
502
  }, z.core.$strict>>;
@@ -502,6 +530,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
502
530
  }, z.core.$strict>>;
503
531
  collections: z.ZodArray<z.ZodObject<{
504
532
  id: z.ZodString;
533
+ key: z.ZodOptional<z.ZodString>;
505
534
  title: z.ZodString;
506
535
  quests: z.ZodArray<z.ZodString>;
507
536
  }, z.core.$strict>>;
@@ -512,6 +541,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
512
541
  declare const questCatalogSchema: z.ZodObject<{
513
542
  revision: z.ZodNumber;
514
543
  types: z.ZodArray<z.ZodObject<{
544
+ key: z.ZodOptional<z.ZodString>;
515
545
  id: z.ZodString;
516
546
  version: z.ZodString;
517
547
  code: z.ZodString;
@@ -543,6 +573,11 @@ declare const questCatalogSchema: z.ZodObject<{
543
573
  discord: "discord";
544
574
  }>>>;
545
575
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
576
+ kind: z.ZodLiteral<"point-ledger">;
577
+ default: z.ZodString;
578
+ label: z.ZodString;
579
+ description: z.ZodOptional<z.ZodString>;
580
+ }, z.core.$strict>, z.ZodObject<{
546
581
  kind: z.ZodLiteral<"datetime">;
547
582
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
548
583
  label: z.ZodString;
@@ -551,6 +586,9 @@ declare const questCatalogSchema: z.ZodObject<{
551
586
  kind: z.ZodLiteral<"resource">;
552
587
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
553
588
  source: z.ZodUnion<readonly [z.ZodObject<{
589
+ provider: z.ZodLiteral<"domino">;
590
+ resource: z.ZodLiteral<"point-ledger">;
591
+ }, z.core.$strict>, z.ZodObject<{
554
592
  provider: z.ZodLiteral<"discord">;
555
593
  resource: z.ZodLiteral<"channel">;
556
594
  types: z.ZodArray<z.ZodEnum<{
@@ -675,8 +713,8 @@ declare const questCatalogSchema: z.ZodObject<{
675
713
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
676
714
  id: z.ZodString;
677
715
  scope: z.ZodEnum<{
678
- member: "member";
679
716
  project: "project";
717
+ member: "member";
680
718
  }>;
681
719
  period: z.ZodEnum<{
682
720
  lifetime: "lifetime";
@@ -699,6 +737,7 @@ declare const questCatalogSchema: z.ZodObject<{
699
737
  }, z.core.$strip>>;
700
738
  collections: z.ZodArray<z.ZodObject<{
701
739
  id: z.ZodString;
740
+ key: z.ZodOptional<z.ZodString>;
702
741
  title: z.ZodString;
703
742
  quests: z.ZodArray<z.ZodString>;
704
743
  }, z.core.$strict>>;
@@ -750,6 +789,7 @@ declare const questCatalogSchema: z.ZodObject<{
750
789
  }, z.core.$strict>>;
751
790
  collections: z.ZodArray<z.ZodObject<{
752
791
  id: z.ZodString;
792
+ key: z.ZodOptional<z.ZodString>;
753
793
  title: z.ZodString;
754
794
  quests: z.ZodArray<z.ZodString>;
755
795
  }, z.core.$strict>>;
@@ -783,6 +823,7 @@ declare const questCatalogSchema: z.ZodObject<{
783
823
  }, z.core.$strict>>;
784
824
  collections: z.ZodArray<z.ZodObject<{
785
825
  id: z.ZodString;
826
+ key: z.ZodOptional<z.ZodString>;
786
827
  title: z.ZodString;
787
828
  quests: z.ZodArray<z.ZodString>;
788
829
  }, z.core.$strict>>;
@@ -818,6 +859,11 @@ declare const questCatalogSchema: z.ZodObject<{
818
859
  discord: "discord";
819
860
  }>>>;
820
861
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
862
+ kind: z.ZodLiteral<"point-ledger">;
863
+ default: z.ZodString;
864
+ label: z.ZodString;
865
+ description: z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strict>, z.ZodObject<{
821
867
  kind: z.ZodLiteral<"datetime">;
822
868
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
823
869
  label: z.ZodString;
@@ -826,6 +872,9 @@ declare const questCatalogSchema: z.ZodObject<{
826
872
  kind: z.ZodLiteral<"resource">;
827
873
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
828
874
  source: z.ZodUnion<readonly [z.ZodObject<{
875
+ provider: z.ZodLiteral<"domino">;
876
+ resource: z.ZodLiteral<"point-ledger">;
877
+ }, z.core.$strict>, z.ZodObject<{
829
878
  provider: z.ZodLiteral<"discord">;
830
879
  resource: z.ZodLiteral<"channel">;
831
880
  types: z.ZodArray<z.ZodEnum<{
@@ -950,8 +999,8 @@ declare const questCatalogSchema: z.ZodObject<{
950
999
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
951
1000
  id: z.ZodString;
952
1001
  scope: z.ZodEnum<{
953
- member: "member";
954
1002
  project: "project";
1003
+ member: "member";
955
1004
  }>;
956
1005
  period: z.ZodEnum<{
957
1006
  lifetime: "lifetime";
@@ -962,6 +1011,7 @@ declare const questCatalogSchema: z.ZodObject<{
962
1011
  balance: z.ZodString;
963
1012
  }, z.core.$strict>]>;
964
1013
  }, z.core.$strict>>>;
1014
+ key: z.ZodOptional<z.ZodString>;
965
1015
  code: z.ZodString;
966
1016
  provider: z.ZodEnum<{
967
1017
  "fixture-pass": "fixture-pass";
@@ -1046,7 +1096,7 @@ declare const questCatalogSchema: z.ZodObject<{
1046
1096
  createdAt: z.ZodNumber;
1047
1097
  }, z.core.$strip>, z.ZodTransform<{
1048
1098
  quest: string;
1049
- runtimeVersion: 1 | 2;
1099
+ runtimeVersion: 2 | 1;
1050
1100
  title: string;
1051
1101
  presentation: {
1052
1102
  quiz?: {
@@ -1070,6 +1120,11 @@ declare const questCatalogSchema: z.ZodObject<{
1070
1120
  };
1071
1121
  integrations: "discord"[];
1072
1122
  fields: Record<string, {
1123
+ kind: "point-ledger";
1124
+ default: string;
1125
+ label: string;
1126
+ description?: string | undefined;
1127
+ } | {
1073
1128
  kind: "datetime";
1074
1129
  default: string;
1075
1130
  label: string;
@@ -1081,6 +1136,9 @@ declare const questCatalogSchema: z.ZodObject<{
1081
1136
  provider: "discord";
1082
1137
  resource: "channel";
1083
1138
  types: ("text" | "announcement")[];
1139
+ } | {
1140
+ provider: "domino";
1141
+ resource: "point-ledger";
1084
1142
  } | {
1085
1143
  provider: "discord";
1086
1144
  resource: "role";
@@ -1188,7 +1246,7 @@ declare const questCatalogSchema: z.ZodObject<{
1188
1246
  visibility: "visible" | "hidden";
1189
1247
  budgets: {
1190
1248
  id: string;
1191
- scope: "member" | "project";
1249
+ scope: "project" | "member";
1192
1250
  period: "lifetime" | "day";
1193
1251
  limit: number;
1194
1252
  cost: number | {
@@ -1201,6 +1259,7 @@ declare const questCatalogSchema: z.ZodObject<{
1201
1259
  createdAt: number;
1202
1260
  legacy: boolean;
1203
1261
  lifecycle: "active" | "paused" | "archived";
1262
+ key?: string | undefined;
1204
1263
  origin?: {
1205
1264
  typeVersion: string;
1206
1265
  } | undefined;
@@ -1263,9 +1322,9 @@ declare const questCatalogSchema: z.ZodObject<{
1263
1322
  createdAt: number;
1264
1323
  }>>]>>>;
1265
1324
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1325
+ staff: "staff";
1266
1326
  quiz: "quiz";
1267
1327
  photo: "photo";
1268
- staff: "staff";
1269
1328
  automatic: "automatic";
1270
1329
  claim: "claim";
1271
1330
  }>>;
@@ -1282,14 +1341,25 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1282
1341
  "workers-ai": "workers-ai";
1283
1342
  }>;
1284
1343
  }, z.core.$strip>>>;
1285
- collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
1286
- id: z.ZodString;
1344
+ collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
1287
1345
  title: z.ZodString;
1288
- }, z.core.$strict>>>;
1346
+ key: z.ZodOptional<z.ZodString>;
1347
+ id: z.ZodOptional<z.ZodString>;
1348
+ }, z.core.$strict>, z.ZodTransform<Omit<{
1349
+ title: string;
1350
+ key?: string | undefined;
1351
+ id?: string | undefined;
1352
+ }, "id" | "key"> & {
1353
+ key: string;
1354
+ }, {
1355
+ title: string;
1356
+ key?: string | undefined;
1357
+ id?: string | undefined;
1358
+ }>>>>;
1289
1359
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1360
+ staff: "staff";
1290
1361
  quiz: "quiz";
1291
1362
  photo: "photo";
1292
- staff: "staff";
1293
1363
  automatic: "automatic";
1294
1364
  claim: "claim";
1295
1365
  }>>>;
@@ -1297,6 +1367,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1297
1367
  declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1298
1368
  revision: z.ZodNumber;
1299
1369
  types: z.ZodArray<z.ZodObject<{
1370
+ key: z.ZodOptional<z.ZodString>;
1300
1371
  id: z.ZodString;
1301
1372
  version: z.ZodString;
1302
1373
  code: z.ZodString;
@@ -1328,6 +1399,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1328
1399
  discord: "discord";
1329
1400
  }>>>;
1330
1401
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1402
+ kind: z.ZodLiteral<"point-ledger">;
1403
+ default: z.ZodString;
1404
+ label: z.ZodString;
1405
+ description: z.ZodOptional<z.ZodString>;
1406
+ }, z.core.$strict>, z.ZodObject<{
1331
1407
  kind: z.ZodLiteral<"datetime">;
1332
1408
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1333
1409
  label: z.ZodString;
@@ -1336,6 +1412,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1336
1412
  kind: z.ZodLiteral<"resource">;
1337
1413
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1338
1414
  source: z.ZodUnion<readonly [z.ZodObject<{
1415
+ provider: z.ZodLiteral<"domino">;
1416
+ resource: z.ZodLiteral<"point-ledger">;
1417
+ }, z.core.$strict>, z.ZodObject<{
1339
1418
  provider: z.ZodLiteral<"discord">;
1340
1419
  resource: z.ZodLiteral<"channel">;
1341
1420
  types: z.ZodArray<z.ZodEnum<{
@@ -1460,8 +1539,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1460
1539
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1461
1540
  id: z.ZodString;
1462
1541
  scope: z.ZodEnum<{
1463
- member: "member";
1464
1542
  project: "project";
1543
+ member: "member";
1465
1544
  }>;
1466
1545
  period: z.ZodEnum<{
1467
1546
  lifetime: "lifetime";
@@ -1484,18 +1563,20 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1484
1563
  }, z.core.$strip>>;
1485
1564
  collections: z.ZodArray<z.ZodObject<{
1486
1565
  id: z.ZodString;
1566
+ key: z.ZodOptional<z.ZodString>;
1487
1567
  title: z.ZodString;
1488
1568
  }, z.core.$strict>>;
1489
1569
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1570
+ staff: "staff";
1490
1571
  quiz: "quiz";
1491
1572
  photo: "photo";
1492
- staff: "staff";
1493
1573
  automatic: "automatic";
1494
1574
  claim: "claim";
1495
1575
  }>>;
1496
1576
  }, z.core.$strip>;
1497
1577
  declare const saveQuestDraftSchema: z.ZodObject<{
1498
- id: z.ZodString;
1578
+ id: z.ZodOptional<z.ZodString>;
1579
+ actionId: z.ZodString;
1499
1580
  expectedRevision: z.ZodNumber;
1500
1581
  baseRevision: z.ZodNumber;
1501
1582
  changes: z.ZodObject<{
@@ -1522,6 +1603,7 @@ declare const saveQuestDraftSchema: z.ZodObject<{
1522
1603
  }, z.core.$strict>>;
1523
1604
  collections: z.ZodArray<z.ZodObject<{
1524
1605
  id: z.ZodString;
1606
+ key: z.ZodOptional<z.ZodString>;
1525
1607
  title: z.ZodString;
1526
1608
  quests: z.ZodArray<z.ZodString>;
1527
1609
  }, z.core.$strict>>;
@@ -1533,6 +1615,7 @@ declare const publishQuestDraftSchema: z.ZodObject<{
1533
1615
  }, z.core.$strict>;
1534
1616
  declare const questViewSchema: z.ZodObject<{
1535
1617
  quest: z.ZodString;
1618
+ key: z.ZodOptional<z.ZodString>;
1536
1619
  title: z.ZodString;
1537
1620
  presentation: z.ZodDefault<z.ZodObject<{
1538
1621
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1555,10 +1638,10 @@ declare const questViewSchema: z.ZodObject<{
1555
1638
  }, z.core.$strict>>;
1556
1639
  }, z.core.$strict>>;
1557
1640
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1641
+ discord: "discord";
1558
1642
  google: "google";
1559
1643
  apple: "apple";
1560
1644
  x: "x";
1561
- discord: "discord";
1562
1645
  }>>>;
1563
1646
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1564
1647
  kind: z.ZodLiteral<"manual">;
@@ -1640,11 +1723,11 @@ declare const questViewSchema: z.ZodObject<{
1640
1723
  }, Record<string, string>>>;
1641
1724
  }, z.core.$strict>>;
1642
1725
  status: z.ZodEnum<{
1643
- "needs-review": "needs-review";
1644
1726
  queued: "queued";
1645
1727
  evaluating: "evaluating";
1646
1728
  accepted: "accepted";
1647
1729
  rejected: "rejected";
1730
+ "needs-review": "needs-review";
1648
1731
  failed: "failed";
1649
1732
  }>;
1650
1733
  reason: z.ZodNullable<z.ZodString>;
@@ -1682,9 +1765,9 @@ declare const questViewSchema: z.ZodObject<{
1682
1765
  }, z.core.$strip>>;
1683
1766
  release: z.ZodString;
1684
1767
  interaction: z.ZodEnum<{
1768
+ staff: "staff";
1685
1769
  quiz: "quiz";
1686
1770
  photo: "photo";
1687
- staff: "staff";
1688
1771
  automatic: "automatic";
1689
1772
  claim: "claim";
1690
1773
  }>;
@@ -1698,10 +1781,12 @@ declare const questViewSchema: z.ZodObject<{
1698
1781
  }, z.core.$strip>>;
1699
1782
  }, z.core.$strip>;
1700
1783
  declare const collectionViewSchema: z.ZodObject<{
1784
+ key: z.ZodOptional<z.ZodString>;
1701
1785
  id: z.ZodString;
1702
1786
  title: z.ZodString;
1703
1787
  quests: z.ZodArray<z.ZodObject<{
1704
1788
  quest: z.ZodString;
1789
+ key: z.ZodOptional<z.ZodString>;
1705
1790
  title: z.ZodString;
1706
1791
  presentation: z.ZodDefault<z.ZodObject<{
1707
1792
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1724,10 +1809,10 @@ declare const collectionViewSchema: z.ZodObject<{
1724
1809
  }, z.core.$strict>>;
1725
1810
  }, z.core.$strict>>;
1726
1811
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1812
+ discord: "discord";
1727
1813
  google: "google";
1728
1814
  apple: "apple";
1729
1815
  x: "x";
1730
- discord: "discord";
1731
1816
  }>>>;
1732
1817
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1733
1818
  kind: z.ZodLiteral<"manual">;
@@ -1809,11 +1894,11 @@ declare const collectionViewSchema: z.ZodObject<{
1809
1894
  }, Record<string, string>>>;
1810
1895
  }, z.core.$strict>>;
1811
1896
  status: z.ZodEnum<{
1812
- "needs-review": "needs-review";
1813
1897
  queued: "queued";
1814
1898
  evaluating: "evaluating";
1815
1899
  accepted: "accepted";
1816
1900
  rejected: "rejected";
1901
+ "needs-review": "needs-review";
1817
1902
  failed: "failed";
1818
1903
  }>;
1819
1904
  reason: z.ZodNullable<z.ZodString>;
@@ -1851,9 +1936,9 @@ declare const collectionViewSchema: z.ZodObject<{
1851
1936
  }, z.core.$strip>>;
1852
1937
  release: z.ZodString;
1853
1938
  interaction: z.ZodEnum<{
1939
+ staff: "staff";
1854
1940
  quiz: "quiz";
1855
1941
  photo: "photo";
1856
- staff: "staff";
1857
1942
  automatic: "automatic";
1858
1943
  claim: "claim";
1859
1944
  }>;
@@ -1871,6 +1956,7 @@ declare const questExperienceSchema: z.ZodObject<{
1871
1956
  member: z.ZodString;
1872
1957
  quests: z.ZodArray<z.ZodObject<{
1873
1958
  quest: z.ZodString;
1959
+ key: z.ZodOptional<z.ZodString>;
1874
1960
  title: z.ZodString;
1875
1961
  presentation: z.ZodDefault<z.ZodObject<{
1876
1962
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1893,10 +1979,10 @@ declare const questExperienceSchema: z.ZodObject<{
1893
1979
  }, z.core.$strict>>;
1894
1980
  }, z.core.$strict>>;
1895
1981
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1982
+ discord: "discord";
1896
1983
  google: "google";
1897
1984
  apple: "apple";
1898
1985
  x: "x";
1899
- discord: "discord";
1900
1986
  }>>>;
1901
1987
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1902
1988
  kind: z.ZodLiteral<"manual">;
@@ -1978,11 +2064,11 @@ declare const questExperienceSchema: z.ZodObject<{
1978
2064
  }, Record<string, string>>>;
1979
2065
  }, z.core.$strict>>;
1980
2066
  status: z.ZodEnum<{
1981
- "needs-review": "needs-review";
1982
2067
  queued: "queued";
1983
2068
  evaluating: "evaluating";
1984
2069
  accepted: "accepted";
1985
2070
  rejected: "rejected";
2071
+ "needs-review": "needs-review";
1986
2072
  failed: "failed";
1987
2073
  }>;
1988
2074
  reason: z.ZodNullable<z.ZodString>;
@@ -2020,9 +2106,9 @@ declare const questExperienceSchema: z.ZodObject<{
2020
2106
  }, z.core.$strip>>;
2021
2107
  release: z.ZodString;
2022
2108
  interaction: z.ZodEnum<{
2109
+ staff: "staff";
2023
2110
  quiz: "quiz";
2024
2111
  photo: "photo";
2025
- staff: "staff";
2026
2112
  automatic: "automatic";
2027
2113
  claim: "claim";
2028
2114
  }>;
@@ -2036,10 +2122,12 @@ declare const questExperienceSchema: z.ZodObject<{
2036
2122
  }, z.core.$strip>>;
2037
2123
  }, z.core.$strip>>;
2038
2124
  collections: z.ZodArray<z.ZodObject<{
2125
+ key: z.ZodOptional<z.ZodString>;
2039
2126
  id: z.ZodString;
2040
2127
  title: z.ZodString;
2041
2128
  quests: z.ZodArray<z.ZodObject<{
2042
2129
  quest: z.ZodString;
2130
+ key: z.ZodOptional<z.ZodString>;
2043
2131
  title: z.ZodString;
2044
2132
  presentation: z.ZodDefault<z.ZodObject<{
2045
2133
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2062,10 +2150,10 @@ declare const questExperienceSchema: z.ZodObject<{
2062
2150
  }, z.core.$strict>>;
2063
2151
  }, z.core.$strict>>;
2064
2152
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2153
+ discord: "discord";
2065
2154
  google: "google";
2066
2155
  apple: "apple";
2067
2156
  x: "x";
2068
- discord: "discord";
2069
2157
  }>>>;
2070
2158
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2071
2159
  kind: z.ZodLiteral<"manual">;
@@ -2147,11 +2235,11 @@ declare const questExperienceSchema: z.ZodObject<{
2147
2235
  }, Record<string, string>>>;
2148
2236
  }, z.core.$strict>>;
2149
2237
  status: z.ZodEnum<{
2150
- "needs-review": "needs-review";
2151
2238
  queued: "queued";
2152
2239
  evaluating: "evaluating";
2153
2240
  accepted: "accepted";
2154
2241
  rejected: "rejected";
2242
+ "needs-review": "needs-review";
2155
2243
  failed: "failed";
2156
2244
  }>;
2157
2245
  reason: z.ZodNullable<z.ZodString>;
@@ -2189,9 +2277,9 @@ declare const questExperienceSchema: z.ZodObject<{
2189
2277
  }, z.core.$strip>>;
2190
2278
  release: z.ZodString;
2191
2279
  interaction: z.ZodEnum<{
2280
+ staff: "staff";
2192
2281
  quiz: "quiz";
2193
2282
  photo: "photo";
2194
- staff: "staff";
2195
2283
  automatic: "automatic";
2196
2284
  claim: "claim";
2197
2285
  }>;
@@ -2239,6 +2327,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2239
2327
  }, z.core.$strict>>;
2240
2328
  collections: z.ZodArray<z.ZodObject<{
2241
2329
  id: z.ZodString;
2330
+ key: z.ZodOptional<z.ZodString>;
2242
2331
  title: z.ZodString;
2243
2332
  quests: z.ZodArray<z.ZodString>;
2244
2333
  }, z.core.$strict>>;
@@ -2272,6 +2361,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2272
2361
  }, z.core.$strict>>;
2273
2362
  collections: z.ZodArray<z.ZodObject<{
2274
2363
  id: z.ZodString;
2364
+ key: z.ZodOptional<z.ZodString>;
2275
2365
  title: z.ZodString;
2276
2366
  quests: z.ZodArray<z.ZodString>;
2277
2367
  }, z.core.$strict>>;
@@ -2307,6 +2397,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2307
2397
  discord: "discord";
2308
2398
  }>>>;
2309
2399
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2400
+ kind: z.ZodLiteral<"point-ledger">;
2401
+ default: z.ZodString;
2402
+ label: z.ZodString;
2403
+ description: z.ZodOptional<z.ZodString>;
2404
+ }, z.core.$strict>, z.ZodObject<{
2310
2405
  kind: z.ZodLiteral<"datetime">;
2311
2406
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
2312
2407
  label: z.ZodString;
@@ -2315,6 +2410,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2315
2410
  kind: z.ZodLiteral<"resource">;
2316
2411
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
2317
2412
  source: z.ZodUnion<readonly [z.ZodObject<{
2413
+ provider: z.ZodLiteral<"domino">;
2414
+ resource: z.ZodLiteral<"point-ledger">;
2415
+ }, z.core.$strict>, z.ZodObject<{
2318
2416
  provider: z.ZodLiteral<"discord">;
2319
2417
  resource: z.ZodLiteral<"channel">;
2320
2418
  types: z.ZodArray<z.ZodEnum<{
@@ -2439,8 +2537,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2439
2537
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2440
2538
  id: z.ZodString;
2441
2539
  scope: z.ZodEnum<{
2442
- member: "member";
2443
2540
  project: "project";
2541
+ member: "member";
2444
2542
  }>;
2445
2543
  period: z.ZodEnum<{
2446
2544
  lifetime: "lifetime";
@@ -2451,6 +2549,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2451
2549
  balance: z.ZodString;
2452
2550
  }, z.core.$strict>]>;
2453
2551
  }, z.core.$strict>>>;
2552
+ key: z.ZodOptional<z.ZodString>;
2454
2553
  code: z.ZodString;
2455
2554
  provider: z.ZodEnum<{
2456
2555
  "fixture-pass": "fixture-pass";
@@ -2535,7 +2634,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2535
2634
  createdAt: z.ZodNumber;
2536
2635
  }, z.core.$strip>, z.ZodTransform<{
2537
2636
  quest: string;
2538
- runtimeVersion: 1 | 2;
2637
+ runtimeVersion: 2 | 1;
2539
2638
  title: string;
2540
2639
  presentation: {
2541
2640
  quiz?: {
@@ -2559,6 +2658,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2559
2658
  };
2560
2659
  integrations: "discord"[];
2561
2660
  fields: Record<string, {
2661
+ kind: "point-ledger";
2662
+ default: string;
2663
+ label: string;
2664
+ description?: string | undefined;
2665
+ } | {
2562
2666
  kind: "datetime";
2563
2667
  default: string;
2564
2668
  label: string;
@@ -2570,6 +2674,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2570
2674
  provider: "discord";
2571
2675
  resource: "channel";
2572
2676
  types: ("text" | "announcement")[];
2677
+ } | {
2678
+ provider: "domino";
2679
+ resource: "point-ledger";
2573
2680
  } | {
2574
2681
  provider: "discord";
2575
2682
  resource: "role";
@@ -2677,7 +2784,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2677
2784
  visibility: "visible" | "hidden";
2678
2785
  budgets: {
2679
2786
  id: string;
2680
- scope: "member" | "project";
2787
+ scope: "project" | "member";
2681
2788
  period: "lifetime" | "day";
2682
2789
  limit: number;
2683
2790
  cost: number | {
@@ -2690,6 +2797,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2690
2797
  createdAt: number;
2691
2798
  legacy: boolean;
2692
2799
  lifecycle: "active" | "paused" | "archived";
2800
+ key?: string | undefined;
2693
2801
  origin?: {
2694
2802
  typeVersion: string;
2695
2803
  } | undefined;
@@ -2753,10 +2861,17 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2753
2861
  }>>]>>;
2754
2862
  affectedCollections: z.ZodArray<z.ZodObject<{
2755
2863
  id: z.ZodString;
2864
+ key: z.ZodOptional<z.ZodString>;
2756
2865
  title: z.ZodString;
2757
2866
  quests: z.ZodArray<z.ZodString>;
2758
2867
  }, z.core.$strict>>;
2759
2868
  }, z.core.$strip>;
2869
+ declare const allocateQuestSchema: z.ZodObject<{
2870
+ actionId: z.ZodString;
2871
+ }, z.core.$strict>;
2872
+ declare const allocatedQuestSchema: z.ZodObject<{
2873
+ id: z.ZodString;
2874
+ }, z.core.$strip>;
2760
2875
 
2761
2876
  type QuestActionResult = {
2762
2877
  kind: "submitted";
@@ -2789,6 +2904,28 @@ type QuestController = (ActiveController & {
2789
2904
  submit(): Promise<QuestActionResult>;
2790
2905
  });
2791
2906
 
2907
+ declare const pointLedgerPropertiesSchema: z.ZodObject<{
2908
+ name: z.ZodString;
2909
+ description: z.ZodDefault<z.ZodString>;
2910
+ }, z.core.$strict>;
2911
+ declare const createPointLedgerSchema: z.ZodObject<{
2912
+ name: z.ZodString;
2913
+ description: z.ZodDefault<z.ZodString>;
2914
+ actionId: z.ZodString;
2915
+ key: z.ZodOptional<z.ZodString>;
2916
+ }, z.core.$strict>;
2917
+ declare const pointLedgerSchema: z.ZodObject<{
2918
+ name: z.ZodString;
2919
+ description: z.ZodDefault<z.ZodString>;
2920
+ id: z.ZodString;
2921
+ }, z.core.$strict>;
2922
+ declare const pointLedgerDeclarationSchema: z.ZodObject<{
2923
+ name: z.ZodString;
2924
+ description: z.ZodDefault<z.ZodString>;
2925
+ key: z.ZodString;
2926
+ }, z.core.$strict>;
2927
+ type PointLedger = z.infer<typeof pointLedgerSchema>;
2928
+
2792
2929
  declare const rewardDeliverySchema: z.ZodObject<{
2793
2930
  id: z.ZodString;
2794
2931
  quest: z.ZodString;
@@ -2828,9 +2965,6 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
2828
2965
  }, z.core.$strip>>;
2829
2966
  }, z.core.$strip>;
2830
2967
 
2831
- /** An opaque prefixed resource ID with 131 bits of cryptographic randomness. */
2832
- declare function resourceId(prefix: string): string;
2833
-
2834
2968
  declare const collectionCodeSchema: z.ZodString;
2835
2969
  declare const collectionPassSchema: z.ZodObject<{
2836
2970
  code: z.ZodString;
@@ -2967,10 +3101,6 @@ declare function questConfiguration(release: PublishedRelease): {
2967
3101
 
2968
3102
  /** Non-quest resources in the private hosted-build catalog artifact. */
2969
3103
  declare const projectCatalogArtifactSchema: z.ZodObject<{
2970
- collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2971
- id: z.ZodString;
2972
- title: z.ZodString;
2973
- }, z.core.$strict>>>;
2974
3104
  types: z.ZodDefault<z.ZodArray<z.ZodObject<{
2975
3105
  code: z.ZodString;
2976
3106
  provider: z.ZodEnum<{
@@ -2981,26 +3111,35 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
2981
3111
  "workers-ai": "workers-ai";
2982
3112
  }>;
2983
3113
  }, z.core.$strip>>>;
3114
+ collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3115
+ title: z.ZodString;
3116
+ key: z.ZodOptional<z.ZodString>;
3117
+ id: z.ZodOptional<z.ZodString>;
3118
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3119
+ title: string;
3120
+ key?: string | undefined;
3121
+ id?: string | undefined;
3122
+ }, "id" | "key"> & {
3123
+ key: string;
3124
+ }, {
3125
+ title: string;
3126
+ key?: string | undefined;
3127
+ id?: string | undefined;
3128
+ }>>>>;
2984
3129
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3130
+ staff: "staff";
2985
3131
  quiz: "quiz";
2986
3132
  photo: "photo";
2987
- staff: "staff";
2988
3133
  automatic: "automatic";
2989
3134
  claim: "claim";
2990
3135
  }>>>;
2991
- referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2992
- id: z.ZodString;
3136
+ pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3137
+ name: z.ZodString;
3138
+ description: z.ZodDefault<z.ZodString>;
3139
+ key: z.ZodString;
3140
+ }, z.core.$strict>>>;
3141
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
2993
3142
  title: z.ZodString;
2994
- enabled: z.ZodDefault<z.ZodBoolean>;
2995
- qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
2996
- kind: z.ZodLiteral<"signup">;
2997
- }, z.core.$strict>, z.ZodObject<{
2998
- kind: z.ZodLiteral<"quest">;
2999
- quest: z.ZodString;
3000
- }, z.core.$strict>, z.ZodObject<{
3001
- kind: z.ZodLiteral<"external">;
3002
- }, z.core.$strict>], "kind">;
3003
- inviterGroup: z.ZodOptional<z.ZodString>;
3004
3143
  rewards: z.ZodDefault<z.ZodObject<{
3005
3144
  inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3006
3145
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
@@ -3047,6 +3186,16 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3047
3186
  tier: z.ZodString;
3048
3187
  }, z.core.$strict>]>>>;
3049
3188
  }, z.core.$strict>>;
3189
+ enabled: z.ZodDefault<z.ZodBoolean>;
3190
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3191
+ kind: z.ZodLiteral<"signup">;
3192
+ }, z.core.$strict>, z.ZodObject<{
3193
+ kind: z.ZodLiteral<"quest">;
3194
+ quest: z.ZodString;
3195
+ }, z.core.$strict>, z.ZodObject<{
3196
+ kind: z.ZodLiteral<"external">;
3197
+ }, z.core.$strict>], "kind">;
3198
+ inviterGroup: z.ZodOptional<z.ZodString>;
3050
3199
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3051
3200
  id: z.ZodString;
3052
3201
  count: z.ZodNumber;
@@ -3082,13 +3231,207 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3082
3231
  durationDays: z.ZodOptional<z.ZodNumber>;
3083
3232
  maxPoints: z.ZodOptional<z.ZodNumber>;
3084
3233
  }, z.core.$strict>>>;
3085
- }, z.core.$strict>, z.ZodObject<{
3234
+ key: z.ZodOptional<z.ZodString>;
3235
+ id: z.ZodOptional<z.ZodString>;
3236
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3237
+ title: string;
3238
+ rewards: {
3239
+ inviter: ({
3240
+ kind: "tier";
3241
+ reward: {
3242
+ id: string;
3243
+ title: string;
3244
+ tiers: {
3245
+ id: string;
3246
+ title: string;
3247
+ }[];
3248
+ inventory: {
3249
+ kind: "untracked";
3250
+ };
3251
+ fulfillment: {
3252
+ kind: "staff-handover";
3253
+ };
3254
+ };
3255
+ tier: string;
3256
+ } | {
3257
+ kind: "points";
3258
+ balance: string;
3259
+ amount: number;
3260
+ })[];
3261
+ invitee: ({
3262
+ kind: "tier";
3263
+ reward: {
3264
+ id: string;
3265
+ title: string;
3266
+ tiers: {
3267
+ id: string;
3268
+ title: string;
3269
+ }[];
3270
+ inventory: {
3271
+ kind: "untracked";
3272
+ };
3273
+ fulfillment: {
3274
+ kind: "staff-handover";
3275
+ };
3276
+ };
3277
+ tier: string;
3278
+ } | {
3279
+ kind: "points";
3280
+ balance: string;
3281
+ amount: number;
3282
+ })[];
3283
+ };
3284
+ enabled: boolean;
3285
+ qualification: {
3286
+ kind: "signup";
3287
+ } | {
3288
+ kind: "quest";
3289
+ quest: string;
3290
+ } | {
3291
+ kind: "external";
3292
+ };
3293
+ milestones: {
3294
+ id: string;
3295
+ count: number;
3296
+ rewards: ({
3297
+ kind: "tier";
3298
+ reward: {
3299
+ id: string;
3300
+ title: string;
3301
+ tiers: {
3302
+ id: string;
3303
+ title: string;
3304
+ }[];
3305
+ inventory: {
3306
+ kind: "untracked";
3307
+ };
3308
+ fulfillment: {
3309
+ kind: "staff-handover";
3310
+ };
3311
+ };
3312
+ tier: string;
3313
+ } | {
3314
+ kind: "points";
3315
+ balance: string;
3316
+ amount: number;
3317
+ })[];
3318
+ }[];
3319
+ bonuses: {
3320
+ id: string;
3321
+ balance: string;
3322
+ basisPoints: number;
3323
+ external: boolean;
3324
+ quests?: string[] | undefined;
3325
+ durationDays?: number | undefined;
3326
+ maxPoints?: number | undefined;
3327
+ }[];
3328
+ inviterGroup?: string | undefined;
3329
+ key?: string | undefined;
3330
+ id?: string | undefined;
3331
+ }, "id" | "key"> & {
3332
+ key: string;
3333
+ }, {
3334
+ title: string;
3335
+ rewards: {
3336
+ inviter: ({
3337
+ kind: "tier";
3338
+ reward: {
3339
+ id: string;
3340
+ title: string;
3341
+ tiers: {
3342
+ id: string;
3343
+ title: string;
3344
+ }[];
3345
+ inventory: {
3346
+ kind: "untracked";
3347
+ };
3348
+ fulfillment: {
3349
+ kind: "staff-handover";
3350
+ };
3351
+ };
3352
+ tier: string;
3353
+ } | {
3354
+ kind: "points";
3355
+ balance: string;
3356
+ amount: number;
3357
+ })[];
3358
+ invitee: ({
3359
+ kind: "tier";
3360
+ reward: {
3361
+ id: string;
3362
+ title: string;
3363
+ tiers: {
3364
+ id: string;
3365
+ title: string;
3366
+ }[];
3367
+ inventory: {
3368
+ kind: "untracked";
3369
+ };
3370
+ fulfillment: {
3371
+ kind: "staff-handover";
3372
+ };
3373
+ };
3374
+ tier: string;
3375
+ } | {
3376
+ kind: "points";
3377
+ balance: string;
3378
+ amount: number;
3379
+ })[];
3380
+ };
3381
+ enabled: boolean;
3382
+ qualification: {
3383
+ kind: "signup";
3384
+ } | {
3385
+ kind: "quest";
3386
+ quest: string;
3387
+ } | {
3388
+ kind: "external";
3389
+ };
3390
+ milestones: {
3391
+ id: string;
3392
+ count: number;
3393
+ rewards: ({
3394
+ kind: "tier";
3395
+ reward: {
3396
+ id: string;
3397
+ title: string;
3398
+ tiers: {
3399
+ id: string;
3400
+ title: string;
3401
+ }[];
3402
+ inventory: {
3403
+ kind: "untracked";
3404
+ };
3405
+ fulfillment: {
3406
+ kind: "staff-handover";
3407
+ };
3408
+ };
3409
+ tier: string;
3410
+ } | {
3411
+ kind: "points";
3412
+ balance: string;
3413
+ amount: number;
3414
+ })[];
3415
+ }[];
3416
+ bonuses: {
3417
+ id: string;
3418
+ balance: string;
3419
+ basisPoints: number;
3420
+ external: boolean;
3421
+ quests?: string[] | undefined;
3422
+ durationDays?: number | undefined;
3423
+ maxPoints?: number | undefined;
3424
+ }[];
3425
+ inviterGroup?: string | undefined;
3426
+ key?: string | undefined;
3427
+ id?: string | undefined;
3428
+ }>>, z.ZodObject<{
3086
3429
  code: z.ZodString;
3087
3430
  }, z.core.$strict>]>>>;
3088
- leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3089
- id: z.ZodString;
3090
- title: z.ZodString;
3431
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
3091
3432
  balance: z.ZodString;
3433
+ group: z.ZodOptional<z.ZodString>;
3434
+ title: z.ZodString;
3092
3435
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3093
3436
  kind: z.ZodLiteral<"balance">;
3094
3437
  }, z.core.$strict>, z.ZodObject<{
@@ -3137,17 +3480,102 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3137
3480
  participants: "participants";
3138
3481
  public: "public";
3139
3482
  }>>;
3140
- group: z.ZodOptional<z.ZodString>;
3141
- }, z.core.$strict>, z.ZodObject<{
3483
+ key: z.ZodOptional<z.ZodString>;
3484
+ id: z.ZodOptional<z.ZodString>;
3485
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3486
+ balance: string;
3487
+ title: string;
3488
+ score: {
3489
+ kind: "balance";
3490
+ } | {
3491
+ window: {
3492
+ kind: "fixed";
3493
+ start: number;
3494
+ end: number;
3495
+ } | {
3496
+ kind: "all-time";
3497
+ } | {
3498
+ kind: "rolling";
3499
+ days: number;
3500
+ } | {
3501
+ kind: "calendar";
3502
+ period: "day" | "week" | "month";
3503
+ timeZone: string;
3504
+ };
3505
+ kind: "earned";
3506
+ quests?: string[] | undefined;
3507
+ } | {
3508
+ kind: "net";
3509
+ window: {
3510
+ kind: "fixed";
3511
+ start: number;
3512
+ end: number;
3513
+ } | {
3514
+ kind: "all-time";
3515
+ } | {
3516
+ kind: "rolling";
3517
+ days: number;
3518
+ } | {
3519
+ kind: "calendar";
3520
+ period: "day" | "week" | "month";
3521
+ timeZone: string;
3522
+ };
3523
+ };
3524
+ access: "participants" | "public";
3525
+ group?: string | undefined;
3526
+ key?: string | undefined;
3527
+ id?: string | undefined;
3528
+ }, "id" | "key"> & {
3529
+ key: string;
3530
+ }, {
3531
+ balance: string;
3532
+ title: string;
3533
+ score: {
3534
+ kind: "balance";
3535
+ } | {
3536
+ window: {
3537
+ kind: "fixed";
3538
+ start: number;
3539
+ end: number;
3540
+ } | {
3541
+ kind: "all-time";
3542
+ } | {
3543
+ kind: "rolling";
3544
+ days: number;
3545
+ } | {
3546
+ kind: "calendar";
3547
+ period: "day" | "week" | "month";
3548
+ timeZone: string;
3549
+ };
3550
+ kind: "earned";
3551
+ quests?: string[] | undefined;
3552
+ } | {
3553
+ kind: "net";
3554
+ window: {
3555
+ kind: "fixed";
3556
+ start: number;
3557
+ end: number;
3558
+ } | {
3559
+ kind: "all-time";
3560
+ } | {
3561
+ kind: "rolling";
3562
+ days: number;
3563
+ } | {
3564
+ kind: "calendar";
3565
+ period: "day" | "week" | "month";
3566
+ timeZone: string;
3567
+ };
3568
+ };
3569
+ access: "participants" | "public";
3570
+ group?: string | undefined;
3571
+ key?: string | undefined;
3572
+ id?: string | undefined;
3573
+ }>>, z.ZodObject<{
3142
3574
  code: z.ZodString;
3143
3575
  }, z.core.$strict>]>>>;
3144
3576
  }, z.core.$strict>;
3145
3577
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
3146
3578
  declare const projectDeploymentSchema: z.ZodObject<{
3147
- collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
3148
- id: z.ZodString;
3149
- title: z.ZodString;
3150
- }, z.core.$strict>>>;
3151
3579
  types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3152
3580
  code: z.ZodString;
3153
3581
  provider: z.ZodEnum<{
@@ -3158,26 +3586,35 @@ declare const projectDeploymentSchema: z.ZodObject<{
3158
3586
  "workers-ai": "workers-ai";
3159
3587
  }>;
3160
3588
  }, z.core.$strip>>>;
3589
+ collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3590
+ title: z.ZodString;
3591
+ key: z.ZodOptional<z.ZodString>;
3592
+ id: z.ZodOptional<z.ZodString>;
3593
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3594
+ title: string;
3595
+ key?: string | undefined;
3596
+ id?: string | undefined;
3597
+ }, "id" | "key"> & {
3598
+ key: string;
3599
+ }, {
3600
+ title: string;
3601
+ key?: string | undefined;
3602
+ id?: string | undefined;
3603
+ }>>>>;
3161
3604
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3605
+ staff: "staff";
3162
3606
  quiz: "quiz";
3163
3607
  photo: "photo";
3164
- staff: "staff";
3165
3608
  automatic: "automatic";
3166
3609
  claim: "claim";
3167
3610
  }>>>;
3168
- referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3169
- id: z.ZodString;
3611
+ pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3612
+ name: z.ZodString;
3613
+ description: z.ZodDefault<z.ZodString>;
3614
+ key: z.ZodString;
3615
+ }, z.core.$strict>>>;
3616
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
3170
3617
  title: z.ZodString;
3171
- enabled: z.ZodDefault<z.ZodBoolean>;
3172
- qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3173
- kind: z.ZodLiteral<"signup">;
3174
- }, z.core.$strict>, z.ZodObject<{
3175
- kind: z.ZodLiteral<"quest">;
3176
- quest: z.ZodString;
3177
- }, z.core.$strict>, z.ZodObject<{
3178
- kind: z.ZodLiteral<"external">;
3179
- }, z.core.$strict>], "kind">;
3180
- inviterGroup: z.ZodOptional<z.ZodString>;
3181
3618
  rewards: z.ZodDefault<z.ZodObject<{
3182
3619
  inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3183
3620
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
@@ -3224,6 +3661,16 @@ declare const projectDeploymentSchema: z.ZodObject<{
3224
3661
  tier: z.ZodString;
3225
3662
  }, z.core.$strict>]>>>;
3226
3663
  }, z.core.$strict>>;
3664
+ enabled: z.ZodDefault<z.ZodBoolean>;
3665
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3666
+ kind: z.ZodLiteral<"signup">;
3667
+ }, z.core.$strict>, z.ZodObject<{
3668
+ kind: z.ZodLiteral<"quest">;
3669
+ quest: z.ZodString;
3670
+ }, z.core.$strict>, z.ZodObject<{
3671
+ kind: z.ZodLiteral<"external">;
3672
+ }, z.core.$strict>], "kind">;
3673
+ inviterGroup: z.ZodOptional<z.ZodString>;
3227
3674
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3228
3675
  id: z.ZodString;
3229
3676
  count: z.ZodNumber;
@@ -3259,13 +3706,207 @@ declare const projectDeploymentSchema: z.ZodObject<{
3259
3706
  durationDays: z.ZodOptional<z.ZodNumber>;
3260
3707
  maxPoints: z.ZodOptional<z.ZodNumber>;
3261
3708
  }, z.core.$strict>>>;
3262
- }, z.core.$strict>, z.ZodObject<{
3709
+ key: z.ZodOptional<z.ZodString>;
3710
+ id: z.ZodOptional<z.ZodString>;
3711
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3712
+ title: string;
3713
+ rewards: {
3714
+ inviter: ({
3715
+ kind: "tier";
3716
+ reward: {
3717
+ id: string;
3718
+ title: string;
3719
+ tiers: {
3720
+ id: string;
3721
+ title: string;
3722
+ }[];
3723
+ inventory: {
3724
+ kind: "untracked";
3725
+ };
3726
+ fulfillment: {
3727
+ kind: "staff-handover";
3728
+ };
3729
+ };
3730
+ tier: string;
3731
+ } | {
3732
+ kind: "points";
3733
+ balance: string;
3734
+ amount: number;
3735
+ })[];
3736
+ invitee: ({
3737
+ kind: "tier";
3738
+ reward: {
3739
+ id: string;
3740
+ title: string;
3741
+ tiers: {
3742
+ id: string;
3743
+ title: string;
3744
+ }[];
3745
+ inventory: {
3746
+ kind: "untracked";
3747
+ };
3748
+ fulfillment: {
3749
+ kind: "staff-handover";
3750
+ };
3751
+ };
3752
+ tier: string;
3753
+ } | {
3754
+ kind: "points";
3755
+ balance: string;
3756
+ amount: number;
3757
+ })[];
3758
+ };
3759
+ enabled: boolean;
3760
+ qualification: {
3761
+ kind: "signup";
3762
+ } | {
3763
+ kind: "quest";
3764
+ quest: string;
3765
+ } | {
3766
+ kind: "external";
3767
+ };
3768
+ milestones: {
3769
+ id: string;
3770
+ count: number;
3771
+ rewards: ({
3772
+ kind: "tier";
3773
+ reward: {
3774
+ id: string;
3775
+ title: string;
3776
+ tiers: {
3777
+ id: string;
3778
+ title: string;
3779
+ }[];
3780
+ inventory: {
3781
+ kind: "untracked";
3782
+ };
3783
+ fulfillment: {
3784
+ kind: "staff-handover";
3785
+ };
3786
+ };
3787
+ tier: string;
3788
+ } | {
3789
+ kind: "points";
3790
+ balance: string;
3791
+ amount: number;
3792
+ })[];
3793
+ }[];
3794
+ bonuses: {
3795
+ id: string;
3796
+ balance: string;
3797
+ basisPoints: number;
3798
+ external: boolean;
3799
+ quests?: string[] | undefined;
3800
+ durationDays?: number | undefined;
3801
+ maxPoints?: number | undefined;
3802
+ }[];
3803
+ inviterGroup?: string | undefined;
3804
+ key?: string | undefined;
3805
+ id?: string | undefined;
3806
+ }, "id" | "key"> & {
3807
+ key: string;
3808
+ }, {
3809
+ title: string;
3810
+ rewards: {
3811
+ inviter: ({
3812
+ kind: "tier";
3813
+ reward: {
3814
+ id: string;
3815
+ title: string;
3816
+ tiers: {
3817
+ id: string;
3818
+ title: string;
3819
+ }[];
3820
+ inventory: {
3821
+ kind: "untracked";
3822
+ };
3823
+ fulfillment: {
3824
+ kind: "staff-handover";
3825
+ };
3826
+ };
3827
+ tier: string;
3828
+ } | {
3829
+ kind: "points";
3830
+ balance: string;
3831
+ amount: number;
3832
+ })[];
3833
+ invitee: ({
3834
+ kind: "tier";
3835
+ reward: {
3836
+ id: string;
3837
+ title: string;
3838
+ tiers: {
3839
+ id: string;
3840
+ title: string;
3841
+ }[];
3842
+ inventory: {
3843
+ kind: "untracked";
3844
+ };
3845
+ fulfillment: {
3846
+ kind: "staff-handover";
3847
+ };
3848
+ };
3849
+ tier: string;
3850
+ } | {
3851
+ kind: "points";
3852
+ balance: string;
3853
+ amount: number;
3854
+ })[];
3855
+ };
3856
+ enabled: boolean;
3857
+ qualification: {
3858
+ kind: "signup";
3859
+ } | {
3860
+ kind: "quest";
3861
+ quest: string;
3862
+ } | {
3863
+ kind: "external";
3864
+ };
3865
+ milestones: {
3866
+ id: string;
3867
+ count: number;
3868
+ rewards: ({
3869
+ kind: "tier";
3870
+ reward: {
3871
+ id: string;
3872
+ title: string;
3873
+ tiers: {
3874
+ id: string;
3875
+ title: string;
3876
+ }[];
3877
+ inventory: {
3878
+ kind: "untracked";
3879
+ };
3880
+ fulfillment: {
3881
+ kind: "staff-handover";
3882
+ };
3883
+ };
3884
+ tier: string;
3885
+ } | {
3886
+ kind: "points";
3887
+ balance: string;
3888
+ amount: number;
3889
+ })[];
3890
+ }[];
3891
+ bonuses: {
3892
+ id: string;
3893
+ balance: string;
3894
+ basisPoints: number;
3895
+ external: boolean;
3896
+ quests?: string[] | undefined;
3897
+ durationDays?: number | undefined;
3898
+ maxPoints?: number | undefined;
3899
+ }[];
3900
+ inviterGroup?: string | undefined;
3901
+ key?: string | undefined;
3902
+ id?: string | undefined;
3903
+ }>>, z.ZodObject<{
3263
3904
  code: z.ZodString;
3264
3905
  }, z.core.$strict>]>>>;
3265
- leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3266
- id: z.ZodString;
3267
- title: z.ZodString;
3906
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
3268
3907
  balance: z.ZodString;
3908
+ group: z.ZodOptional<z.ZodString>;
3909
+ title: z.ZodString;
3269
3910
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3270
3911
  kind: z.ZodLiteral<"balance">;
3271
3912
  }, z.core.$strict>, z.ZodObject<{
@@ -3314,8 +3955,97 @@ declare const projectDeploymentSchema: z.ZodObject<{
3314
3955
  participants: "participants";
3315
3956
  public: "public";
3316
3957
  }>>;
3317
- group: z.ZodOptional<z.ZodString>;
3318
- }, z.core.$strict>, z.ZodObject<{
3958
+ key: z.ZodOptional<z.ZodString>;
3959
+ id: z.ZodOptional<z.ZodString>;
3960
+ }, z.core.$strict>, z.ZodTransform<Omit<{
3961
+ balance: string;
3962
+ title: string;
3963
+ score: {
3964
+ kind: "balance";
3965
+ } | {
3966
+ window: {
3967
+ kind: "fixed";
3968
+ start: number;
3969
+ end: number;
3970
+ } | {
3971
+ kind: "all-time";
3972
+ } | {
3973
+ kind: "rolling";
3974
+ days: number;
3975
+ } | {
3976
+ kind: "calendar";
3977
+ period: "day" | "week" | "month";
3978
+ timeZone: string;
3979
+ };
3980
+ kind: "earned";
3981
+ quests?: string[] | undefined;
3982
+ } | {
3983
+ kind: "net";
3984
+ window: {
3985
+ kind: "fixed";
3986
+ start: number;
3987
+ end: number;
3988
+ } | {
3989
+ kind: "all-time";
3990
+ } | {
3991
+ kind: "rolling";
3992
+ days: number;
3993
+ } | {
3994
+ kind: "calendar";
3995
+ period: "day" | "week" | "month";
3996
+ timeZone: string;
3997
+ };
3998
+ };
3999
+ access: "participants" | "public";
4000
+ group?: string | undefined;
4001
+ key?: string | undefined;
4002
+ id?: string | undefined;
4003
+ }, "id" | "key"> & {
4004
+ key: string;
4005
+ }, {
4006
+ balance: string;
4007
+ title: string;
4008
+ score: {
4009
+ kind: "balance";
4010
+ } | {
4011
+ window: {
4012
+ kind: "fixed";
4013
+ start: number;
4014
+ end: number;
4015
+ } | {
4016
+ kind: "all-time";
4017
+ } | {
4018
+ kind: "rolling";
4019
+ days: number;
4020
+ } | {
4021
+ kind: "calendar";
4022
+ period: "day" | "week" | "month";
4023
+ timeZone: string;
4024
+ };
4025
+ kind: "earned";
4026
+ quests?: string[] | undefined;
4027
+ } | {
4028
+ kind: "net";
4029
+ window: {
4030
+ kind: "fixed";
4031
+ start: number;
4032
+ end: number;
4033
+ } | {
4034
+ kind: "all-time";
4035
+ } | {
4036
+ kind: "rolling";
4037
+ days: number;
4038
+ } | {
4039
+ kind: "calendar";
4040
+ period: "day" | "week" | "month";
4041
+ timeZone: string;
4042
+ };
4043
+ };
4044
+ access: "participants" | "public";
4045
+ group?: string | undefined;
4046
+ key?: string | undefined;
4047
+ id?: string | undefined;
4048
+ }>>, z.ZodObject<{
3319
4049
  code: z.ZodString;
3320
4050
  }, z.core.$strict>]>>>;
3321
4051
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3343,6 +4073,11 @@ declare const projectDeploymentSchema: z.ZodObject<{
3343
4073
  declare const deploymentPreviewSchema: z.ZodObject<{
3344
4074
  id: z.ZodString;
3345
4075
  baseRevision: z.ZodNumber;
4076
+ pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4077
+ name: z.ZodString;
4078
+ description: z.ZodDefault<z.ZodString>;
4079
+ id: z.ZodString;
4080
+ }, z.core.$strict>>>;
3346
4081
  releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3347
4082
  quest: z.ZodString;
3348
4083
  runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
@@ -3371,6 +4106,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3371
4106
  discord: "discord";
3372
4107
  }>>>;
3373
4108
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
4109
+ kind: z.ZodLiteral<"point-ledger">;
4110
+ default: z.ZodString;
4111
+ label: z.ZodString;
4112
+ description: z.ZodOptional<z.ZodString>;
4113
+ }, z.core.$strict>, z.ZodObject<{
3374
4114
  kind: z.ZodLiteral<"datetime">;
3375
4115
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
3376
4116
  label: z.ZodString;
@@ -3379,6 +4119,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3379
4119
  kind: z.ZodLiteral<"resource">;
3380
4120
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
3381
4121
  source: z.ZodUnion<readonly [z.ZodObject<{
4122
+ provider: z.ZodLiteral<"domino">;
4123
+ resource: z.ZodLiteral<"point-ledger">;
4124
+ }, z.core.$strict>, z.ZodObject<{
3382
4125
  provider: z.ZodLiteral<"discord">;
3383
4126
  resource: z.ZodLiteral<"channel">;
3384
4127
  types: z.ZodArray<z.ZodEnum<{
@@ -3503,8 +4246,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3503
4246
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3504
4247
  id: z.ZodString;
3505
4248
  scope: z.ZodEnum<{
3506
- member: "member";
3507
4249
  project: "project";
4250
+ member: "member";
3508
4251
  }>;
3509
4252
  period: z.ZodEnum<{
3510
4253
  lifetime: "lifetime";
@@ -3515,6 +4258,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3515
4258
  balance: z.ZodString;
3516
4259
  }, z.core.$strict>]>;
3517
4260
  }, z.core.$strict>>>;
4261
+ key: z.ZodOptional<z.ZodString>;
3518
4262
  code: z.ZodString;
3519
4263
  provider: z.ZodEnum<{
3520
4264
  "fixture-pass": "fixture-pass";
@@ -3599,7 +4343,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3599
4343
  createdAt: z.ZodNumber;
3600
4344
  }, z.core.$strip>, z.ZodTransform<{
3601
4345
  quest: string;
3602
- runtimeVersion: 1 | 2;
4346
+ runtimeVersion: 2 | 1;
3603
4347
  title: string;
3604
4348
  presentation: {
3605
4349
  quiz?: {
@@ -3623,6 +4367,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3623
4367
  };
3624
4368
  integrations: "discord"[];
3625
4369
  fields: Record<string, {
4370
+ kind: "point-ledger";
4371
+ default: string;
4372
+ label: string;
4373
+ description?: string | undefined;
4374
+ } | {
3626
4375
  kind: "datetime";
3627
4376
  default: string;
3628
4377
  label: string;
@@ -3634,6 +4383,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3634
4383
  provider: "discord";
3635
4384
  resource: "channel";
3636
4385
  types: ("text" | "announcement")[];
4386
+ } | {
4387
+ provider: "domino";
4388
+ resource: "point-ledger";
3637
4389
  } | {
3638
4390
  provider: "discord";
3639
4391
  resource: "role";
@@ -3741,7 +4493,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3741
4493
  visibility: "visible" | "hidden";
3742
4494
  budgets: {
3743
4495
  id: string;
3744
- scope: "member" | "project";
4496
+ scope: "project" | "member";
3745
4497
  period: "lifetime" | "day";
3746
4498
  limit: number;
3747
4499
  cost: number | {
@@ -3754,6 +4506,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3754
4506
  createdAt: number;
3755
4507
  legacy: boolean;
3756
4508
  lifecycle: "active" | "paused" | "archived";
4509
+ key?: string | undefined;
3757
4510
  origin?: {
3758
4511
  typeVersion: string;
3759
4512
  } | undefined;
@@ -3816,6 +4569,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3816
4569
  createdAt: number;
3817
4570
  }>>]>>;
3818
4571
  types: z.ZodArray<z.ZodObject<{
4572
+ key: z.ZodOptional<z.ZodString>;
3819
4573
  id: z.ZodString;
3820
4574
  version: z.ZodString;
3821
4575
  code: z.ZodString;
@@ -3847,6 +4601,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3847
4601
  discord: "discord";
3848
4602
  }>>>;
3849
4603
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
4604
+ kind: z.ZodLiteral<"point-ledger">;
4605
+ default: z.ZodString;
4606
+ label: z.ZodString;
4607
+ description: z.ZodOptional<z.ZodString>;
4608
+ }, z.core.$strict>, z.ZodObject<{
3850
4609
  kind: z.ZodLiteral<"datetime">;
3851
4610
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
3852
4611
  label: z.ZodString;
@@ -3855,6 +4614,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3855
4614
  kind: z.ZodLiteral<"resource">;
3856
4615
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
3857
4616
  source: z.ZodUnion<readonly [z.ZodObject<{
4617
+ provider: z.ZodLiteral<"domino">;
4618
+ resource: z.ZodLiteral<"point-ledger">;
4619
+ }, z.core.$strict>, z.ZodObject<{
3858
4620
  provider: z.ZodLiteral<"discord">;
3859
4621
  resource: z.ZodLiteral<"channel">;
3860
4622
  types: z.ZodArray<z.ZodEnum<{
@@ -3979,8 +4741,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
3979
4741
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3980
4742
  id: z.ZodString;
3981
4743
  scope: z.ZodEnum<{
3982
- member: "member";
3983
4744
  project: "project";
4745
+ member: "member";
3984
4746
  }>;
3985
4747
  period: z.ZodEnum<{
3986
4748
  lifetime: "lifetime";
@@ -4003,13 +4765,14 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4003
4765
  }, z.core.$strip>>;
4004
4766
  collections: z.ZodArray<z.ZodObject<{
4005
4767
  id: z.ZodString;
4768
+ key: z.ZodOptional<z.ZodString>;
4006
4769
  title: z.ZodString;
4007
4770
  quests: z.ZodArray<z.ZodString>;
4008
4771
  }, z.core.$strict>>;
4009
4772
  supportedInteractions: z.ZodArray<z.ZodEnum<{
4773
+ staff: "staff";
4010
4774
  quiz: "quiz";
4011
4775
  photo: "photo";
4012
- staff: "staff";
4013
4776
  automatic: "automatic";
4014
4777
  claim: "claim";
4015
4778
  }>>;
@@ -4017,6 +4780,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4017
4780
  version: z.ZodString;
4018
4781
  definition: z.ZodObject<{
4019
4782
  id: z.ZodString;
4783
+ key: z.ZodOptional<z.ZodString>;
4020
4784
  title: z.ZodString;
4021
4785
  enabled: z.ZodDefault<z.ZodBoolean>;
4022
4786
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4118,6 +4882,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4118
4882
  version: z.ZodString;
4119
4883
  definition: z.ZodObject<{
4120
4884
  id: z.ZodString;
4885
+ key: z.ZodOptional<z.ZodString>;
4121
4886
  title: z.ZodString;
4122
4887
  balance: z.ZodString;
4123
4888
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4259,6 +5024,11 @@ declare const publishDeploymentSchema: z.ZodObject<{
4259
5024
  declare const deploymentResultSchema: z.ZodObject<{
4260
5025
  id: z.ZodString;
4261
5026
  baseRevision: z.ZodNumber;
5027
+ pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
5028
+ name: z.ZodString;
5029
+ description: z.ZodDefault<z.ZodString>;
5030
+ id: z.ZodString;
5031
+ }, z.core.$strict>>>;
4262
5032
  releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4263
5033
  quest: z.ZodString;
4264
5034
  runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
@@ -4287,6 +5057,11 @@ declare const deploymentResultSchema: z.ZodObject<{
4287
5057
  discord: "discord";
4288
5058
  }>>>;
4289
5059
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5060
+ kind: z.ZodLiteral<"point-ledger">;
5061
+ default: z.ZodString;
5062
+ label: z.ZodString;
5063
+ description: z.ZodOptional<z.ZodString>;
5064
+ }, z.core.$strict>, z.ZodObject<{
4290
5065
  kind: z.ZodLiteral<"datetime">;
4291
5066
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
4292
5067
  label: z.ZodString;
@@ -4295,6 +5070,9 @@ declare const deploymentResultSchema: z.ZodObject<{
4295
5070
  kind: z.ZodLiteral<"resource">;
4296
5071
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
4297
5072
  source: z.ZodUnion<readonly [z.ZodObject<{
5073
+ provider: z.ZodLiteral<"domino">;
5074
+ resource: z.ZodLiteral<"point-ledger">;
5075
+ }, z.core.$strict>, z.ZodObject<{
4298
5076
  provider: z.ZodLiteral<"discord">;
4299
5077
  resource: z.ZodLiteral<"channel">;
4300
5078
  types: z.ZodArray<z.ZodEnum<{
@@ -4419,8 +5197,8 @@ declare const deploymentResultSchema: z.ZodObject<{
4419
5197
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4420
5198
  id: z.ZodString;
4421
5199
  scope: z.ZodEnum<{
4422
- member: "member";
4423
5200
  project: "project";
5201
+ member: "member";
4424
5202
  }>;
4425
5203
  period: z.ZodEnum<{
4426
5204
  lifetime: "lifetime";
@@ -4431,6 +5209,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4431
5209
  balance: z.ZodString;
4432
5210
  }, z.core.$strict>]>;
4433
5211
  }, z.core.$strict>>>;
5212
+ key: z.ZodOptional<z.ZodString>;
4434
5213
  code: z.ZodString;
4435
5214
  provider: z.ZodEnum<{
4436
5215
  "fixture-pass": "fixture-pass";
@@ -4515,7 +5294,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4515
5294
  createdAt: z.ZodNumber;
4516
5295
  }, z.core.$strip>, z.ZodTransform<{
4517
5296
  quest: string;
4518
- runtimeVersion: 1 | 2;
5297
+ runtimeVersion: 2 | 1;
4519
5298
  title: string;
4520
5299
  presentation: {
4521
5300
  quiz?: {
@@ -4539,6 +5318,11 @@ declare const deploymentResultSchema: z.ZodObject<{
4539
5318
  };
4540
5319
  integrations: "discord"[];
4541
5320
  fields: Record<string, {
5321
+ kind: "point-ledger";
5322
+ default: string;
5323
+ label: string;
5324
+ description?: string | undefined;
5325
+ } | {
4542
5326
  kind: "datetime";
4543
5327
  default: string;
4544
5328
  label: string;
@@ -4550,6 +5334,9 @@ declare const deploymentResultSchema: z.ZodObject<{
4550
5334
  provider: "discord";
4551
5335
  resource: "channel";
4552
5336
  types: ("text" | "announcement")[];
5337
+ } | {
5338
+ provider: "domino";
5339
+ resource: "point-ledger";
4553
5340
  } | {
4554
5341
  provider: "discord";
4555
5342
  resource: "role";
@@ -4657,7 +5444,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4657
5444
  visibility: "visible" | "hidden";
4658
5445
  budgets: {
4659
5446
  id: string;
4660
- scope: "member" | "project";
5447
+ scope: "project" | "member";
4661
5448
  period: "lifetime" | "day";
4662
5449
  limit: number;
4663
5450
  cost: number | {
@@ -4670,6 +5457,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4670
5457
  createdAt: number;
4671
5458
  legacy: boolean;
4672
5459
  lifecycle: "active" | "paused" | "archived";
5460
+ key?: string | undefined;
4673
5461
  origin?: {
4674
5462
  typeVersion: string;
4675
5463
  } | undefined;
@@ -4732,6 +5520,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4732
5520
  createdAt: number;
4733
5521
  }>>]>>;
4734
5522
  types: z.ZodArray<z.ZodObject<{
5523
+ key: z.ZodOptional<z.ZodString>;
4735
5524
  id: z.ZodString;
4736
5525
  version: z.ZodString;
4737
5526
  code: z.ZodString;
@@ -4763,6 +5552,11 @@ declare const deploymentResultSchema: z.ZodObject<{
4763
5552
  discord: "discord";
4764
5553
  }>>>;
4765
5554
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5555
+ kind: z.ZodLiteral<"point-ledger">;
5556
+ default: z.ZodString;
5557
+ label: z.ZodString;
5558
+ description: z.ZodOptional<z.ZodString>;
5559
+ }, z.core.$strict>, z.ZodObject<{
4766
5560
  kind: z.ZodLiteral<"datetime">;
4767
5561
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
4768
5562
  label: z.ZodString;
@@ -4771,6 +5565,9 @@ declare const deploymentResultSchema: z.ZodObject<{
4771
5565
  kind: z.ZodLiteral<"resource">;
4772
5566
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
4773
5567
  source: z.ZodUnion<readonly [z.ZodObject<{
5568
+ provider: z.ZodLiteral<"domino">;
5569
+ resource: z.ZodLiteral<"point-ledger">;
5570
+ }, z.core.$strict>, z.ZodObject<{
4774
5571
  provider: z.ZodLiteral<"discord">;
4775
5572
  resource: z.ZodLiteral<"channel">;
4776
5573
  types: z.ZodArray<z.ZodEnum<{
@@ -4895,8 +5692,8 @@ declare const deploymentResultSchema: z.ZodObject<{
4895
5692
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4896
5693
  id: z.ZodString;
4897
5694
  scope: z.ZodEnum<{
4898
- member: "member";
4899
5695
  project: "project";
5696
+ member: "member";
4900
5697
  }>;
4901
5698
  period: z.ZodEnum<{
4902
5699
  lifetime: "lifetime";
@@ -4919,13 +5716,14 @@ declare const deploymentResultSchema: z.ZodObject<{
4919
5716
  }, z.core.$strip>>;
4920
5717
  collections: z.ZodArray<z.ZodObject<{
4921
5718
  id: z.ZodString;
5719
+ key: z.ZodOptional<z.ZodString>;
4922
5720
  title: z.ZodString;
4923
5721
  quests: z.ZodArray<z.ZodString>;
4924
5722
  }, z.core.$strict>>;
4925
5723
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5724
+ staff: "staff";
4926
5725
  quiz: "quiz";
4927
5726
  photo: "photo";
4928
- staff: "staff";
4929
5727
  automatic: "automatic";
4930
5728
  claim: "claim";
4931
5729
  }>>;
@@ -4933,6 +5731,7 @@ declare const deploymentResultSchema: z.ZodObject<{
4933
5731
  version: z.ZodString;
4934
5732
  definition: z.ZodObject<{
4935
5733
  id: z.ZodString;
5734
+ key: z.ZodOptional<z.ZodString>;
4936
5735
  title: z.ZodString;
4937
5736
  enabled: z.ZodDefault<z.ZodBoolean>;
4938
5737
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5034,6 +5833,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5034
5833
  version: z.ZodString;
5035
5834
  definition: z.ZodObject<{
5036
5835
  id: z.ZodString;
5836
+ key: z.ZodOptional<z.ZodString>;
5037
5837
  title: z.ZodString;
5038
5838
  balance: z.ZodString;
5039
5839
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5308,6 +6108,7 @@ declare function createRelayClient(options: {
5308
6108
  durationDays?: number | undefined;
5309
6109
  maxPoints?: number | undefined;
5310
6110
  }[];
6111
+ key?: string | undefined;
5311
6112
  inviterGroup?: string | undefined;
5312
6113
  }[]>;
5313
6114
  summary: () => Promise<{
@@ -5407,6 +6208,7 @@ declare function createRelayClient(options: {
5407
6208
  durationDays?: number | undefined;
5408
6209
  maxPoints?: number | undefined;
5409
6210
  }[];
6211
+ key?: string | undefined;
5410
6212
  inviterGroup?: string | undefined;
5411
6213
  };
5412
6214
  qualified: number;
@@ -5483,6 +6285,7 @@ declare function createRelayClient(options: {
5483
6285
  };
5484
6286
  };
5485
6287
  access: "participants" | "public";
6288
+ key?: string | undefined;
5486
6289
  group?: string | undefined;
5487
6290
  }[]>;
5488
6291
  standings: (board: string, options?: LeaderboardQuery) => Promise<{
@@ -5545,7 +6348,7 @@ declare function createRelayClient(options: {
5545
6348
  } | undefined;
5546
6349
  } | undefined;
5547
6350
  };
5548
- connections: ("google" | "apple" | "x" | "discord")[];
6351
+ connections: ("discord" | "google" | "apple" | "x")[];
5549
6352
  trigger: {
5550
6353
  kind: "manual";
5551
6354
  input: "quiz" | "photo" | "none";
@@ -5604,7 +6407,7 @@ declare function createRelayClient(options: {
5604
6407
  quest: string;
5605
6408
  member: string;
5606
6409
  evidence: string | null;
5607
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6410
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5608
6411
  reason: string | null;
5609
6412
  retries: number;
5610
6413
  generation: number;
@@ -5646,11 +6449,12 @@ declare function createRelayClient(options: {
5646
6449
  } | undefined;
5647
6450
  } | null;
5648
6451
  release: string;
5649
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6452
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
5650
6453
  lifecycle: "active" | "paused" | "archived";
5651
6454
  rewards: {
5652
6455
  label: string;
5653
6456
  }[];
6457
+ key?: string | undefined;
5654
6458
  }>;
5655
6459
  retry: (view: QuestView) => Promise<{
5656
6460
  id: string;
@@ -5658,7 +6462,7 @@ declare function createRelayClient(options: {
5658
6462
  quest: string;
5659
6463
  member: string;
5660
6464
  evidence: string | null;
5661
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6465
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5662
6466
  reason: string | null;
5663
6467
  retries: number;
5664
6468
  generation: number;
@@ -5724,7 +6528,7 @@ declare function createRelayClient(options: {
5724
6528
  } | undefined;
5725
6529
  } | undefined;
5726
6530
  };
5727
- connections: ("google" | "apple" | "x" | "discord")[];
6531
+ connections: ("discord" | "google" | "apple" | "x")[];
5728
6532
  trigger: {
5729
6533
  kind: "manual";
5730
6534
  input: "quiz" | "photo" | "none";
@@ -5783,7 +6587,7 @@ declare function createRelayClient(options: {
5783
6587
  quest: string;
5784
6588
  member: string;
5785
6589
  evidence: string | null;
5786
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6590
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5787
6591
  reason: string | null;
5788
6592
  retries: number;
5789
6593
  generation: number;
@@ -5825,11 +6629,12 @@ declare function createRelayClient(options: {
5825
6629
  } | undefined;
5826
6630
  } | null;
5827
6631
  release: string;
5828
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6632
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
5829
6633
  lifecycle: "active" | "paused" | "archived";
5830
6634
  rewards: {
5831
6635
  label: string;
5832
6636
  }[];
6637
+ key?: string | undefined;
5833
6638
  }[];
5834
6639
  collections: {
5835
6640
  id: string;
@@ -5857,7 +6662,7 @@ declare function createRelayClient(options: {
5857
6662
  } | undefined;
5858
6663
  } | undefined;
5859
6664
  };
5860
- connections: ("google" | "apple" | "x" | "discord")[];
6665
+ connections: ("discord" | "google" | "apple" | "x")[];
5861
6666
  trigger: {
5862
6667
  kind: "manual";
5863
6668
  input: "quiz" | "photo" | "none";
@@ -5916,7 +6721,7 @@ declare function createRelayClient(options: {
5916
6721
  quest: string;
5917
6722
  member: string;
5918
6723
  evidence: string | null;
5919
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6724
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5920
6725
  reason: string | null;
5921
6726
  retries: number;
5922
6727
  generation: number;
@@ -5958,12 +6763,14 @@ declare function createRelayClient(options: {
5958
6763
  } | undefined;
5959
6764
  } | null;
5960
6765
  release: string;
5961
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6766
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
5962
6767
  lifecycle: "active" | "paused" | "archived";
5963
6768
  rewards: {
5964
6769
  label: string;
5965
6770
  }[];
6771
+ key?: string | undefined;
5966
6772
  }[];
6773
+ key?: string | undefined;
5967
6774
  }[];
5968
6775
  }>;
5969
6776
  collection: (id: string) => Promise<{
@@ -5992,7 +6799,7 @@ declare function createRelayClient(options: {
5992
6799
  } | undefined;
5993
6800
  } | undefined;
5994
6801
  };
5995
- connections: ("google" | "apple" | "x" | "discord")[];
6802
+ connections: ("discord" | "google" | "apple" | "x")[];
5996
6803
  trigger: {
5997
6804
  kind: "manual";
5998
6805
  input: "quiz" | "photo" | "none";
@@ -6051,7 +6858,7 @@ declare function createRelayClient(options: {
6051
6858
  quest: string;
6052
6859
  member: string;
6053
6860
  evidence: string | null;
6054
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6861
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
6055
6862
  reason: string | null;
6056
6863
  retries: number;
6057
6864
  generation: number;
@@ -6093,12 +6900,14 @@ declare function createRelayClient(options: {
6093
6900
  } | undefined;
6094
6901
  } | null;
6095
6902
  release: string;
6096
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6903
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
6097
6904
  lifecycle: "active" | "paused" | "archived";
6098
6905
  rewards: {
6099
6906
  label: string;
6100
6907
  }[];
6908
+ key?: string | undefined;
6101
6909
  }[];
6910
+ key?: string | undefined;
6102
6911
  }>;
6103
6912
  open: (view: QuestView) => Promise<QuestController>;
6104
6913
  observe: (listener: (value: ProgressObservation<z.infer<typeof questExperienceSchema>>) => void, options?: {
@@ -6130,7 +6939,7 @@ declare function createRelayClient(options: {
6130
6939
  auth: {
6131
6940
  providers: () => Promise<{
6132
6941
  providers: {
6133
- provider: "google" | "apple" | "x" | "discord";
6942
+ provider: "discord" | "google" | "apple" | "x";
6134
6943
  configured: boolean;
6135
6944
  }[];
6136
6945
  email: boolean;
@@ -6160,7 +6969,7 @@ declare function createRelayClient(options: {
6160
6969
  expiresAt: number;
6161
6970
  }>;
6162
6971
  accounts: () => Promise<{
6163
- provider: "google" | "apple" | "x" | "discord";
6972
+ provider: "discord" | "google" | "apple" | "x";
6164
6973
  configured: boolean;
6165
6974
  status: "disconnected" | "connected" | "reconnect";
6166
6975
  subject: string | null;
@@ -6252,7 +7061,7 @@ declare function createRelayClient(options: {
6252
7061
  quest: string;
6253
7062
  member: string;
6254
7063
  evidence: string | null;
6255
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7064
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
6256
7065
  reason: string | null;
6257
7066
  retries: number;
6258
7067
  generation: number;
@@ -6318,7 +7127,7 @@ declare function createRelayClient(options: {
6318
7127
  } | undefined;
6319
7128
  } | undefined;
6320
7129
  };
6321
- connections: ("google" | "apple" | "x" | "discord")[];
7130
+ connections: ("discord" | "google" | "apple" | "x")[];
6322
7131
  trigger: {
6323
7132
  kind: "manual";
6324
7133
  input: "quiz" | "photo" | "none";
@@ -6377,7 +7186,7 @@ declare function createRelayClient(options: {
6377
7186
  quest: string;
6378
7187
  member: string;
6379
7188
  evidence: string | null;
6380
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7189
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
6381
7190
  reason: string | null;
6382
7191
  retries: number;
6383
7192
  generation: number;
@@ -6418,6 +7227,7 @@ declare function createRelayClient(options: {
6418
7227
  release?: string | undefined;
6419
7228
  } | undefined;
6420
7229
  } | null;
7230
+ key?: string | undefined;
6421
7231
  release?: string | undefined;
6422
7232
  }[];
6423
7233
  entitlements: ({
@@ -6523,7 +7333,7 @@ declare function createRelayClient(options: {
6523
7333
  quest: string;
6524
7334
  member: string;
6525
7335
  evidence: string | null;
6526
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7336
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
6527
7337
  reason: string | null;
6528
7338
  retries: number;
6529
7339
  generation: number;
@@ -6582,7 +7392,7 @@ declare function createRelayClient(options: {
6582
7392
  quest: string;
6583
7393
  member: string;
6584
7394
  evidence: string | null;
6585
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7395
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
6586
7396
  reason: string | null;
6587
7397
  retries: number;
6588
7398
  generation: number;
@@ -6657,7 +7467,7 @@ declare function createRelayClient(options: {
6657
7467
  code: string;
6658
7468
  definition: {
6659
7469
  quest: string;
6660
- runtimeVersion: 1 | 2;
7470
+ runtimeVersion: 2 | 1;
6661
7471
  title: string;
6662
7472
  presentation: {
6663
7473
  quiz?: {
@@ -6681,6 +7491,11 @@ declare function createRelayClient(options: {
6681
7491
  };
6682
7492
  integrations: "discord"[];
6683
7493
  fields: Record<string, {
7494
+ kind: "point-ledger";
7495
+ default: string;
7496
+ label: string;
7497
+ description?: string | undefined;
7498
+ } | {
6684
7499
  kind: "datetime";
6685
7500
  default: string;
6686
7501
  label: string;
@@ -6692,6 +7507,9 @@ declare function createRelayClient(options: {
6692
7507
  provider: "discord";
6693
7508
  resource: "channel";
6694
7509
  types: ("text" | "announcement")[];
7510
+ } | {
7511
+ provider: "domino";
7512
+ resource: "point-ledger";
6695
7513
  } | {
6696
7514
  provider: "discord";
6697
7515
  resource: "role";
@@ -6799,7 +7617,7 @@ declare function createRelayClient(options: {
6799
7617
  visibility: "visible" | "hidden";
6800
7618
  budgets: {
6801
7619
  id: string;
6802
- scope: "member" | "project";
7620
+ scope: "project" | "member";
6803
7621
  period: "lifetime" | "day";
6804
7622
  limit: number;
6805
7623
  cost: number | {
@@ -6812,7 +7630,7 @@ declare function createRelayClient(options: {
6812
7630
  code: string;
6813
7631
  definition: {
6814
7632
  quest: string;
6815
- runtimeVersion: 1 | 2;
7633
+ runtimeVersion: 2 | 1;
6816
7634
  title: string;
6817
7635
  presentation: {
6818
7636
  quiz?: {
@@ -6836,6 +7654,11 @@ declare function createRelayClient(options: {
6836
7654
  };
6837
7655
  integrations: "discord"[];
6838
7656
  fields: Record<string, {
7657
+ kind: "point-ledger";
7658
+ default: string;
7659
+ label: string;
7660
+ description?: string | undefined;
7661
+ } | {
6839
7662
  kind: "datetime";
6840
7663
  default: string;
6841
7664
  label: string;
@@ -6847,6 +7670,9 @@ declare function createRelayClient(options: {
6847
7670
  provider: "discord";
6848
7671
  resource: "channel";
6849
7672
  types: ("text" | "announcement")[];
7673
+ } | {
7674
+ provider: "domino";
7675
+ resource: "point-ledger";
6850
7676
  } | {
6851
7677
  provider: "discord";
6852
7678
  resource: "role";
@@ -6954,7 +7780,7 @@ declare function createRelayClient(options: {
6954
7780
  visibility: "visible" | "hidden";
6955
7781
  budgets: {
6956
7782
  id: string;
6957
- scope: "member" | "project";
7783
+ scope: "project" | "member";
6958
7784
  period: "lifetime" | "day";
6959
7785
  limit: number;
6960
7786
  cost: number | {
@@ -6966,7 +7792,7 @@ declare function createRelayClient(options: {
6966
7792
  snapshot: () => Promise<{
6967
7793
  releases: {
6968
7794
  quest: string;
6969
- runtimeVersion: 1 | 2;
7795
+ runtimeVersion: 2 | 1;
6970
7796
  title: string;
6971
7797
  presentation: {
6972
7798
  quiz?: {
@@ -6990,6 +7816,11 @@ declare function createRelayClient(options: {
6990
7816
  };
6991
7817
  integrations: "discord"[];
6992
7818
  fields: Record<string, {
7819
+ kind: "point-ledger";
7820
+ default: string;
7821
+ label: string;
7822
+ description?: string | undefined;
7823
+ } | {
6993
7824
  kind: "datetime";
6994
7825
  default: string;
6995
7826
  label: string;
@@ -7001,6 +7832,9 @@ declare function createRelayClient(options: {
7001
7832
  provider: "discord";
7002
7833
  resource: "channel";
7003
7834
  types: ("text" | "announcement")[];
7835
+ } | {
7836
+ provider: "domino";
7837
+ resource: "point-ledger";
7004
7838
  } | {
7005
7839
  provider: "discord";
7006
7840
  resource: "role";
@@ -7108,7 +7942,7 @@ declare function createRelayClient(options: {
7108
7942
  visibility: "visible" | "hidden";
7109
7943
  budgets: {
7110
7944
  id: string;
7111
- scope: "member" | "project";
7945
+ scope: "project" | "member";
7112
7946
  period: "lifetime" | "day";
7113
7947
  limit: number;
7114
7948
  cost: number | {
@@ -7121,6 +7955,7 @@ declare function createRelayClient(options: {
7121
7955
  createdAt: number;
7122
7956
  legacy: boolean;
7123
7957
  lifecycle: "active" | "paused" | "archived";
7958
+ key?: string | undefined;
7124
7959
  origin?: {
7125
7960
  typeVersion: string;
7126
7961
  } | undefined;
@@ -7235,7 +8070,7 @@ declare function createRelayClient(options: {
7235
8070
  quest: string;
7236
8071
  member: string;
7237
8072
  evidence: string | null;
7238
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8073
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
7239
8074
  reason: string | null;
7240
8075
  retries: number;
7241
8076
  generation: number;
@@ -7294,7 +8129,7 @@ declare function createRelayClient(options: {
7294
8129
  }>;
7295
8130
  publish: (release: ReleaseInput) => Promise<{
7296
8131
  quest: string;
7297
- runtimeVersion: 1 | 2;
8132
+ runtimeVersion: 2 | 1;
7298
8133
  title: string;
7299
8134
  presentation: {
7300
8135
  quiz?: {
@@ -7318,6 +8153,11 @@ declare function createRelayClient(options: {
7318
8153
  };
7319
8154
  integrations: "discord"[];
7320
8155
  fields: Record<string, {
8156
+ kind: "point-ledger";
8157
+ default: string;
8158
+ label: string;
8159
+ description?: string | undefined;
8160
+ } | {
7321
8161
  kind: "datetime";
7322
8162
  default: string;
7323
8163
  label: string;
@@ -7329,6 +8169,9 @@ declare function createRelayClient(options: {
7329
8169
  provider: "discord";
7330
8170
  resource: "channel";
7331
8171
  types: ("text" | "announcement")[];
8172
+ } | {
8173
+ provider: "domino";
8174
+ resource: "point-ledger";
7332
8175
  } | {
7333
8176
  provider: "discord";
7334
8177
  resource: "role";
@@ -7436,7 +8279,7 @@ declare function createRelayClient(options: {
7436
8279
  visibility: "visible" | "hidden";
7437
8280
  budgets: {
7438
8281
  id: string;
7439
- scope: "member" | "project";
8282
+ scope: "project" | "member";
7440
8283
  period: "lifetime" | "day";
7441
8284
  limit: number;
7442
8285
  cost: number | {
@@ -7449,6 +8292,7 @@ declare function createRelayClient(options: {
7449
8292
  createdAt: number;
7450
8293
  legacy: boolean;
7451
8294
  lifecycle: "active" | "paused" | "archived";
8295
+ key?: string | undefined;
7452
8296
  origin?: {
7453
8297
  typeVersion: string;
7454
8298
  } | undefined;
@@ -7476,7 +8320,7 @@ declare function createRelayClient(options: {
7476
8320
  }>;
7477
8321
  publishBatch: (releases: ReleaseInput[]) => Promise<{
7478
8322
  quest: string;
7479
- runtimeVersion: 1 | 2;
8323
+ runtimeVersion: 2 | 1;
7480
8324
  title: string;
7481
8325
  presentation: {
7482
8326
  quiz?: {
@@ -7500,6 +8344,11 @@ declare function createRelayClient(options: {
7500
8344
  };
7501
8345
  integrations: "discord"[];
7502
8346
  fields: Record<string, {
8347
+ kind: "point-ledger";
8348
+ default: string;
8349
+ label: string;
8350
+ description?: string | undefined;
8351
+ } | {
7503
8352
  kind: "datetime";
7504
8353
  default: string;
7505
8354
  label: string;
@@ -7511,6 +8360,9 @@ declare function createRelayClient(options: {
7511
8360
  provider: "discord";
7512
8361
  resource: "channel";
7513
8362
  types: ("text" | "announcement")[];
8363
+ } | {
8364
+ provider: "domino";
8365
+ resource: "point-ledger";
7514
8366
  } | {
7515
8367
  provider: "discord";
7516
8368
  resource: "role";
@@ -7618,7 +8470,7 @@ declare function createRelayClient(options: {
7618
8470
  visibility: "visible" | "hidden";
7619
8471
  budgets: {
7620
8472
  id: string;
7621
- scope: "member" | "project";
8473
+ scope: "project" | "member";
7622
8474
  period: "lifetime" | "day";
7623
8475
  limit: number;
7624
8476
  cost: number | {
@@ -7631,6 +8483,7 @@ declare function createRelayClient(options: {
7631
8483
  createdAt: number;
7632
8484
  legacy: boolean;
7633
8485
  lifecycle: "active" | "paused" | "archived";
8486
+ key?: string | undefined;
7634
8487
  origin?: {
7635
8488
  typeVersion: string;
7636
8489
  } | undefined;
@@ -7681,7 +8534,7 @@ declare function createRelayClient(options: {
7681
8534
  } | undefined;
7682
8535
  } | undefined;
7683
8536
  };
7684
- connections: ("google" | "apple" | "x" | "discord")[];
8537
+ connections: ("discord" | "google" | "apple" | "x")[];
7685
8538
  trigger: {
7686
8539
  kind: "manual";
7687
8540
  input: "quiz" | "photo" | "none";
@@ -7740,7 +8593,7 @@ declare function createRelayClient(options: {
7740
8593
  quest: string;
7741
8594
  member: string;
7742
8595
  evidence: string | null;
7743
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8596
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
7744
8597
  reason: string | null;
7745
8598
  retries: number;
7746
8599
  generation: number;
@@ -7781,6 +8634,7 @@ declare function createRelayClient(options: {
7781
8634
  release?: string | undefined;
7782
8635
  } | undefined;
7783
8636
  } | null;
8637
+ key?: string | undefined;
7784
8638
  release?: string | undefined;
7785
8639
  }[];
7786
8640
  entitlements: ({
@@ -8030,7 +8884,7 @@ declare function createRelayClient(options: {
8030
8884
  quest: string;
8031
8885
  member: string;
8032
8886
  evidence: string | null;
8033
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8887
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
8034
8888
  reason: string | null;
8035
8889
  retries: number;
8036
8890
  generation: number;
@@ -8077,7 +8931,7 @@ declare function createRelayClient(options: {
8077
8931
  quest: string;
8078
8932
  member: string;
8079
8933
  evidence: string | null;
8080
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8934
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
8081
8935
  reason: string | null;
8082
8936
  retries: number;
8083
8937
  generation: number;
@@ -8129,7 +8983,7 @@ declare function createRelayClient(options: {
8129
8983
  quest: string;
8130
8984
  member: string;
8131
8985
  evidence: string | null;
8132
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8986
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
8133
8987
  reason: string | null;
8134
8988
  retries: number;
8135
8989
  generation: number;
@@ -8172,4 +9026,4 @@ declare function createRelayClient(options: {
8172
9026
  }>;
8173
9027
  };
8174
9028
 
8175
- export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, resourceId, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
9029
+ export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };