@domino-sdk/relay 0.7.0 → 0.9.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/authoring.d.ts +13 -9
- package/dist/authoring.js +19 -9
- package/dist/browser.d.ts +38 -9
- package/dist/browser.js +4 -4
- package/dist/{chunk-36LZ3IOO.js → chunk-MVDE7WKB.js} +1 -1
- package/dist/chunk-Q5VDZVVO.js +388 -0
- package/dist/{chunk-6QUCADMF.js → chunk-XTFCKK2Y.js} +37 -5
- package/dist/{chunk-LXLNC4CN.js → chunk-Y6H4HDQT.js} +42 -28
- package/dist/index.d.ts +854 -114
- package/dist/index.js +28 -6
- package/dist/portal-proxy.js +2 -2
- package/dist/schema.d.ts +45 -19
- package/dist/schema.js +7 -1
- package/dist/{settings-CU_oBcx0.d.ts → settings-BA8XjT4m.d.ts} +766 -23
- package/package.json +1 -1
- package/dist/chunk-TYVT5BPZ.js +0 -337
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,
|
|
5
|
-
export {
|
|
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, storedReviewModeSchema, 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;
|
|
@@ -199,6 +199,7 @@ declare const interactionSchema: z.ZodEnum<{
|
|
|
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;
|
|
@@ -243,6 +244,9 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
243
244
|
kind: z.ZodLiteral<"resource">;
|
|
244
245
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
245
246
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
247
|
+
provider: z.ZodLiteral<"domino">;
|
|
248
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
246
250
|
provider: z.ZodLiteral<"discord">;
|
|
247
251
|
resource: z.ZodLiteral<"channel">;
|
|
248
252
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -371,8 +375,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
371
375
|
member: "member";
|
|
372
376
|
}>;
|
|
373
377
|
period: z.ZodEnum<{
|
|
374
|
-
day: "day";
|
|
375
378
|
lifetime: "lifetime";
|
|
379
|
+
day: "day";
|
|
376
380
|
}>;
|
|
377
381
|
limit: z.ZodNumber;
|
|
378
382
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -381,20 +385,37 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
381
385
|
}, z.core.$strict>>>;
|
|
382
386
|
}, z.core.$strict>;
|
|
383
387
|
provider: z.ZodEnum<{
|
|
388
|
+
"workers-ai": "workers-ai";
|
|
384
389
|
"fixture-pass": "fixture-pass";
|
|
385
390
|
"fixture-fail": "fixture-fail";
|
|
386
391
|
"fixture-unclear": "fixture-unclear";
|
|
387
392
|
"fixture-error": "fixture-error";
|
|
388
|
-
"workers-ai": "workers-ai";
|
|
389
393
|
}>;
|
|
390
394
|
createdAt: z.ZodNumber;
|
|
391
395
|
}, z.core.$strip>;
|
|
392
396
|
declare const collectionSlotSchema: z.ZodObject<{
|
|
393
397
|
id: z.ZodString;
|
|
398
|
+
key: z.ZodOptional<z.ZodString>;
|
|
394
399
|
title: z.ZodString;
|
|
395
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
|
+
}>>;
|
|
396
416
|
declare const questCollectionSchema: z.ZodObject<{
|
|
397
417
|
id: z.ZodString;
|
|
418
|
+
key: z.ZodOptional<z.ZodString>;
|
|
398
419
|
title: z.ZodString;
|
|
399
420
|
quests: z.ZodArray<z.ZodString>;
|
|
400
421
|
}, z.core.$strict>;
|
|
@@ -442,6 +463,7 @@ declare const questDraftChangesSchema: z.ZodObject<{
|
|
|
442
463
|
}, z.core.$strict>>;
|
|
443
464
|
collections: z.ZodArray<z.ZodObject<{
|
|
444
465
|
id: z.ZodString;
|
|
466
|
+
key: z.ZodOptional<z.ZodString>;
|
|
445
467
|
title: z.ZodString;
|
|
446
468
|
quests: z.ZodArray<z.ZodString>;
|
|
447
469
|
}, z.core.$strict>>;
|
|
@@ -474,6 +496,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
474
496
|
}, z.core.$strict>>;
|
|
475
497
|
collections: z.ZodArray<z.ZodObject<{
|
|
476
498
|
id: z.ZodString;
|
|
499
|
+
key: z.ZodOptional<z.ZodString>;
|
|
477
500
|
title: z.ZodString;
|
|
478
501
|
quests: z.ZodArray<z.ZodString>;
|
|
479
502
|
}, z.core.$strict>>;
|
|
@@ -507,6 +530,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
507
530
|
}, z.core.$strict>>;
|
|
508
531
|
collections: z.ZodArray<z.ZodObject<{
|
|
509
532
|
id: z.ZodString;
|
|
533
|
+
key: z.ZodOptional<z.ZodString>;
|
|
510
534
|
title: z.ZodString;
|
|
511
535
|
quests: z.ZodArray<z.ZodString>;
|
|
512
536
|
}, z.core.$strict>>;
|
|
@@ -517,6 +541,7 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
517
541
|
declare const questCatalogSchema: z.ZodObject<{
|
|
518
542
|
revision: z.ZodNumber;
|
|
519
543
|
types: z.ZodArray<z.ZodObject<{
|
|
544
|
+
key: z.ZodOptional<z.ZodString>;
|
|
520
545
|
id: z.ZodString;
|
|
521
546
|
version: z.ZodString;
|
|
522
547
|
code: z.ZodString;
|
|
@@ -561,6 +586,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
561
586
|
kind: z.ZodLiteral<"resource">;
|
|
562
587
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
563
588
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
589
|
+
provider: z.ZodLiteral<"domino">;
|
|
590
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
591
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
564
592
|
provider: z.ZodLiteral<"discord">;
|
|
565
593
|
resource: z.ZodLiteral<"channel">;
|
|
566
594
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -689,8 +717,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
689
717
|
member: "member";
|
|
690
718
|
}>;
|
|
691
719
|
period: z.ZodEnum<{
|
|
692
|
-
day: "day";
|
|
693
720
|
lifetime: "lifetime";
|
|
721
|
+
day: "day";
|
|
694
722
|
}>;
|
|
695
723
|
limit: z.ZodNumber;
|
|
696
724
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -699,16 +727,17 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
699
727
|
}, z.core.$strict>>>;
|
|
700
728
|
}, z.core.$strict>;
|
|
701
729
|
provider: z.ZodEnum<{
|
|
730
|
+
"workers-ai": "workers-ai";
|
|
702
731
|
"fixture-pass": "fixture-pass";
|
|
703
732
|
"fixture-fail": "fixture-fail";
|
|
704
733
|
"fixture-unclear": "fixture-unclear";
|
|
705
734
|
"fixture-error": "fixture-error";
|
|
706
|
-
"workers-ai": "workers-ai";
|
|
707
735
|
}>;
|
|
708
736
|
createdAt: z.ZodNumber;
|
|
709
737
|
}, z.core.$strip>>;
|
|
710
738
|
collections: z.ZodArray<z.ZodObject<{
|
|
711
739
|
id: z.ZodString;
|
|
740
|
+
key: z.ZodOptional<z.ZodString>;
|
|
712
741
|
title: z.ZodString;
|
|
713
742
|
quests: z.ZodArray<z.ZodString>;
|
|
714
743
|
}, z.core.$strict>>;
|
|
@@ -760,6 +789,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
760
789
|
}, z.core.$strict>>;
|
|
761
790
|
collections: z.ZodArray<z.ZodObject<{
|
|
762
791
|
id: z.ZodString;
|
|
792
|
+
key: z.ZodOptional<z.ZodString>;
|
|
763
793
|
title: z.ZodString;
|
|
764
794
|
quests: z.ZodArray<z.ZodString>;
|
|
765
795
|
}, z.core.$strict>>;
|
|
@@ -793,6 +823,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
793
823
|
}, z.core.$strict>>;
|
|
794
824
|
collections: z.ZodArray<z.ZodObject<{
|
|
795
825
|
id: z.ZodString;
|
|
826
|
+
key: z.ZodOptional<z.ZodString>;
|
|
796
827
|
title: z.ZodString;
|
|
797
828
|
quests: z.ZodArray<z.ZodString>;
|
|
798
829
|
}, z.core.$strict>>;
|
|
@@ -841,6 +872,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
841
872
|
kind: z.ZodLiteral<"resource">;
|
|
842
873
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
843
874
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
875
|
+
provider: z.ZodLiteral<"domino">;
|
|
876
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
877
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
844
878
|
provider: z.ZodLiteral<"discord">;
|
|
845
879
|
resource: z.ZodLiteral<"channel">;
|
|
846
880
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -969,21 +1003,22 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
969
1003
|
member: "member";
|
|
970
1004
|
}>;
|
|
971
1005
|
period: z.ZodEnum<{
|
|
972
|
-
day: "day";
|
|
973
1006
|
lifetime: "lifetime";
|
|
1007
|
+
day: "day";
|
|
974
1008
|
}>;
|
|
975
1009
|
limit: z.ZodNumber;
|
|
976
1010
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
977
1011
|
balance: z.ZodString;
|
|
978
1012
|
}, z.core.$strict>]>;
|
|
979
1013
|
}, z.core.$strict>>>;
|
|
1014
|
+
key: z.ZodOptional<z.ZodString>;
|
|
980
1015
|
code: z.ZodString;
|
|
981
1016
|
provider: z.ZodEnum<{
|
|
1017
|
+
"workers-ai": "workers-ai";
|
|
982
1018
|
"fixture-pass": "fixture-pass";
|
|
983
1019
|
"fixture-fail": "fixture-fail";
|
|
984
1020
|
"fixture-unclear": "fixture-unclear";
|
|
985
1021
|
"fixture-error": "fixture-error";
|
|
986
|
-
"workers-ai": "workers-ai";
|
|
987
1022
|
}>;
|
|
988
1023
|
id: z.ZodString;
|
|
989
1024
|
createdAt: z.ZodNumber;
|
|
@@ -1051,11 +1086,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1051
1086
|
}, z.core.$strict>]>>;
|
|
1052
1087
|
code: z.ZodString;
|
|
1053
1088
|
provider: z.ZodEnum<{
|
|
1089
|
+
"workers-ai": "workers-ai";
|
|
1054
1090
|
"fixture-pass": "fixture-pass";
|
|
1055
1091
|
"fixture-fail": "fixture-fail";
|
|
1056
1092
|
"fixture-unclear": "fixture-unclear";
|
|
1057
1093
|
"fixture-error": "fixture-error";
|
|
1058
|
-
"workers-ai": "workers-ai";
|
|
1059
1094
|
}>;
|
|
1060
1095
|
id: z.ZodString;
|
|
1061
1096
|
createdAt: z.ZodNumber;
|
|
@@ -1101,6 +1136,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1101
1136
|
provider: "discord";
|
|
1102
1137
|
resource: "channel";
|
|
1103
1138
|
types: ("text" | "announcement")[];
|
|
1139
|
+
} | {
|
|
1140
|
+
provider: "domino";
|
|
1141
|
+
resource: "point-ledger";
|
|
1104
1142
|
} | {
|
|
1105
1143
|
provider: "discord";
|
|
1106
1144
|
resource: "role";
|
|
@@ -1209,18 +1247,19 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1209
1247
|
budgets: {
|
|
1210
1248
|
id: string;
|
|
1211
1249
|
scope: "project" | "member";
|
|
1212
|
-
period: "
|
|
1250
|
+
period: "lifetime" | "day";
|
|
1213
1251
|
limit: number;
|
|
1214
1252
|
cost: number | {
|
|
1215
1253
|
balance: string;
|
|
1216
1254
|
};
|
|
1217
1255
|
}[];
|
|
1218
1256
|
code: string;
|
|
1219
|
-
provider: "
|
|
1257
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
1220
1258
|
id: string;
|
|
1221
1259
|
createdAt: number;
|
|
1222
1260
|
legacy: boolean;
|
|
1223
1261
|
lifecycle: "active" | "paused" | "archived";
|
|
1262
|
+
key?: string | undefined;
|
|
1224
1263
|
origin?: {
|
|
1225
1264
|
typeVersion: string;
|
|
1226
1265
|
} | undefined;
|
|
@@ -1278,7 +1317,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1278
1317
|
roleId: string;
|
|
1279
1318
|
})[];
|
|
1280
1319
|
code: string;
|
|
1281
|
-
provider: "
|
|
1320
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
1282
1321
|
id: string;
|
|
1283
1322
|
createdAt: number;
|
|
1284
1323
|
}>>]>>>;
|
|
@@ -1295,17 +1334,24 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1295
1334
|
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1296
1335
|
code: z.ZodString;
|
|
1297
1336
|
provider: z.ZodEnum<{
|
|
1298
|
-
"fixture-pass": "fixture-pass";
|
|
1299
|
-
"fixture-fail": "fixture-fail";
|
|
1300
|
-
"fixture-unclear": "fixture-unclear";
|
|
1301
|
-
"fixture-error": "fixture-error";
|
|
1302
1337
|
"workers-ai": "workers-ai";
|
|
1303
1338
|
}>;
|
|
1304
1339
|
}, z.core.$strip>>>;
|
|
1305
|
-
collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1306
|
-
id: z.ZodString;
|
|
1340
|
+
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1307
1341
|
title: z.ZodString;
|
|
1308
|
-
|
|
1342
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
1345
|
+
title: string;
|
|
1346
|
+
key?: string | undefined;
|
|
1347
|
+
id?: string | undefined;
|
|
1348
|
+
}, "id" | "key"> & {
|
|
1349
|
+
key: string;
|
|
1350
|
+
}, {
|
|
1351
|
+
title: string;
|
|
1352
|
+
key?: string | undefined;
|
|
1353
|
+
id?: string | undefined;
|
|
1354
|
+
}>>>>;
|
|
1309
1355
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1310
1356
|
staff: "staff";
|
|
1311
1357
|
quiz: "quiz";
|
|
@@ -1317,6 +1363,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1317
1363
|
declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
1318
1364
|
revision: z.ZodNumber;
|
|
1319
1365
|
types: z.ZodArray<z.ZodObject<{
|
|
1366
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1320
1367
|
id: z.ZodString;
|
|
1321
1368
|
version: z.ZodString;
|
|
1322
1369
|
code: z.ZodString;
|
|
@@ -1361,6 +1408,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1361
1408
|
kind: z.ZodLiteral<"resource">;
|
|
1362
1409
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1363
1410
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1411
|
+
provider: z.ZodLiteral<"domino">;
|
|
1412
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
1413
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1364
1414
|
provider: z.ZodLiteral<"discord">;
|
|
1365
1415
|
resource: z.ZodLiteral<"channel">;
|
|
1366
1416
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1489,8 +1539,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1489
1539
|
member: "member";
|
|
1490
1540
|
}>;
|
|
1491
1541
|
period: z.ZodEnum<{
|
|
1492
|
-
day: "day";
|
|
1493
1542
|
lifetime: "lifetime";
|
|
1543
|
+
day: "day";
|
|
1494
1544
|
}>;
|
|
1495
1545
|
limit: z.ZodNumber;
|
|
1496
1546
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1499,16 +1549,17 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1499
1549
|
}, z.core.$strict>>>;
|
|
1500
1550
|
}, z.core.$strict>;
|
|
1501
1551
|
provider: z.ZodEnum<{
|
|
1552
|
+
"workers-ai": "workers-ai";
|
|
1502
1553
|
"fixture-pass": "fixture-pass";
|
|
1503
1554
|
"fixture-fail": "fixture-fail";
|
|
1504
1555
|
"fixture-unclear": "fixture-unclear";
|
|
1505
1556
|
"fixture-error": "fixture-error";
|
|
1506
|
-
"workers-ai": "workers-ai";
|
|
1507
1557
|
}>;
|
|
1508
1558
|
createdAt: z.ZodNumber;
|
|
1509
1559
|
}, z.core.$strip>>;
|
|
1510
1560
|
collections: z.ZodArray<z.ZodObject<{
|
|
1511
1561
|
id: z.ZodString;
|
|
1562
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1512
1563
|
title: z.ZodString;
|
|
1513
1564
|
}, z.core.$strict>>;
|
|
1514
1565
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
@@ -1520,7 +1571,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1520
1571
|
}>>;
|
|
1521
1572
|
}, z.core.$strip>;
|
|
1522
1573
|
declare const saveQuestDraftSchema: z.ZodObject<{
|
|
1523
|
-
id: z.ZodString
|
|
1574
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
actionId: z.ZodString;
|
|
1524
1576
|
expectedRevision: z.ZodNumber;
|
|
1525
1577
|
baseRevision: z.ZodNumber;
|
|
1526
1578
|
changes: z.ZodObject<{
|
|
@@ -1547,6 +1599,7 @@ declare const saveQuestDraftSchema: z.ZodObject<{
|
|
|
1547
1599
|
}, z.core.$strict>>;
|
|
1548
1600
|
collections: z.ZodArray<z.ZodObject<{
|
|
1549
1601
|
id: z.ZodString;
|
|
1602
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1550
1603
|
title: z.ZodString;
|
|
1551
1604
|
quests: z.ZodArray<z.ZodString>;
|
|
1552
1605
|
}, z.core.$strict>>;
|
|
@@ -1558,6 +1611,7 @@ declare const publishQuestDraftSchema: z.ZodObject<{
|
|
|
1558
1611
|
}, z.core.$strict>;
|
|
1559
1612
|
declare const questViewSchema: z.ZodObject<{
|
|
1560
1613
|
quest: z.ZodString;
|
|
1614
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1561
1615
|
title: z.ZodString;
|
|
1562
1616
|
presentation: z.ZodDefault<z.ZodObject<{
|
|
1563
1617
|
quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1723,10 +1777,12 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1723
1777
|
}, z.core.$strip>>;
|
|
1724
1778
|
}, z.core.$strip>;
|
|
1725
1779
|
declare const collectionViewSchema: z.ZodObject<{
|
|
1780
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1726
1781
|
id: z.ZodString;
|
|
1727
1782
|
title: z.ZodString;
|
|
1728
1783
|
quests: z.ZodArray<z.ZodObject<{
|
|
1729
1784
|
quest: z.ZodString;
|
|
1785
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1730
1786
|
title: z.ZodString;
|
|
1731
1787
|
presentation: z.ZodDefault<z.ZodObject<{
|
|
1732
1788
|
quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1896,6 +1952,7 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
1896
1952
|
member: z.ZodString;
|
|
1897
1953
|
quests: z.ZodArray<z.ZodObject<{
|
|
1898
1954
|
quest: z.ZodString;
|
|
1955
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1899
1956
|
title: z.ZodString;
|
|
1900
1957
|
presentation: z.ZodDefault<z.ZodObject<{
|
|
1901
1958
|
quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2061,10 +2118,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2061
2118
|
}, z.core.$strip>>;
|
|
2062
2119
|
}, z.core.$strip>>;
|
|
2063
2120
|
collections: z.ZodArray<z.ZodObject<{
|
|
2121
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2064
2122
|
id: z.ZodString;
|
|
2065
2123
|
title: z.ZodString;
|
|
2066
2124
|
quests: z.ZodArray<z.ZodObject<{
|
|
2067
2125
|
quest: z.ZodString;
|
|
2126
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2068
2127
|
title: z.ZodString;
|
|
2069
2128
|
presentation: z.ZodDefault<z.ZodObject<{
|
|
2070
2129
|
quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2264,6 +2323,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2264
2323
|
}, z.core.$strict>>;
|
|
2265
2324
|
collections: z.ZodArray<z.ZodObject<{
|
|
2266
2325
|
id: z.ZodString;
|
|
2326
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2267
2327
|
title: z.ZodString;
|
|
2268
2328
|
quests: z.ZodArray<z.ZodString>;
|
|
2269
2329
|
}, z.core.$strict>>;
|
|
@@ -2297,6 +2357,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2297
2357
|
}, z.core.$strict>>;
|
|
2298
2358
|
collections: z.ZodArray<z.ZodObject<{
|
|
2299
2359
|
id: z.ZodString;
|
|
2360
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2300
2361
|
title: z.ZodString;
|
|
2301
2362
|
quests: z.ZodArray<z.ZodString>;
|
|
2302
2363
|
}, z.core.$strict>>;
|
|
@@ -2345,6 +2406,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2345
2406
|
kind: z.ZodLiteral<"resource">;
|
|
2346
2407
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
2347
2408
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
2409
|
+
provider: z.ZodLiteral<"domino">;
|
|
2410
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
2411
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2348
2412
|
provider: z.ZodLiteral<"discord">;
|
|
2349
2413
|
resource: z.ZodLiteral<"channel">;
|
|
2350
2414
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -2473,21 +2537,22 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2473
2537
|
member: "member";
|
|
2474
2538
|
}>;
|
|
2475
2539
|
period: z.ZodEnum<{
|
|
2476
|
-
day: "day";
|
|
2477
2540
|
lifetime: "lifetime";
|
|
2541
|
+
day: "day";
|
|
2478
2542
|
}>;
|
|
2479
2543
|
limit: z.ZodNumber;
|
|
2480
2544
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2481
2545
|
balance: z.ZodString;
|
|
2482
2546
|
}, z.core.$strict>]>;
|
|
2483
2547
|
}, z.core.$strict>>>;
|
|
2548
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2484
2549
|
code: z.ZodString;
|
|
2485
2550
|
provider: z.ZodEnum<{
|
|
2551
|
+
"workers-ai": "workers-ai";
|
|
2486
2552
|
"fixture-pass": "fixture-pass";
|
|
2487
2553
|
"fixture-fail": "fixture-fail";
|
|
2488
2554
|
"fixture-unclear": "fixture-unclear";
|
|
2489
2555
|
"fixture-error": "fixture-error";
|
|
2490
|
-
"workers-ai": "workers-ai";
|
|
2491
2556
|
}>;
|
|
2492
2557
|
id: z.ZodString;
|
|
2493
2558
|
createdAt: z.ZodNumber;
|
|
@@ -2555,11 +2620,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2555
2620
|
}, z.core.$strict>]>>;
|
|
2556
2621
|
code: z.ZodString;
|
|
2557
2622
|
provider: z.ZodEnum<{
|
|
2623
|
+
"workers-ai": "workers-ai";
|
|
2558
2624
|
"fixture-pass": "fixture-pass";
|
|
2559
2625
|
"fixture-fail": "fixture-fail";
|
|
2560
2626
|
"fixture-unclear": "fixture-unclear";
|
|
2561
2627
|
"fixture-error": "fixture-error";
|
|
2562
|
-
"workers-ai": "workers-ai";
|
|
2563
2628
|
}>;
|
|
2564
2629
|
id: z.ZodString;
|
|
2565
2630
|
createdAt: z.ZodNumber;
|
|
@@ -2605,6 +2670,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2605
2670
|
provider: "discord";
|
|
2606
2671
|
resource: "channel";
|
|
2607
2672
|
types: ("text" | "announcement")[];
|
|
2673
|
+
} | {
|
|
2674
|
+
provider: "domino";
|
|
2675
|
+
resource: "point-ledger";
|
|
2608
2676
|
} | {
|
|
2609
2677
|
provider: "discord";
|
|
2610
2678
|
resource: "role";
|
|
@@ -2713,18 +2781,19 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2713
2781
|
budgets: {
|
|
2714
2782
|
id: string;
|
|
2715
2783
|
scope: "project" | "member";
|
|
2716
|
-
period: "
|
|
2784
|
+
period: "lifetime" | "day";
|
|
2717
2785
|
limit: number;
|
|
2718
2786
|
cost: number | {
|
|
2719
2787
|
balance: string;
|
|
2720
2788
|
};
|
|
2721
2789
|
}[];
|
|
2722
2790
|
code: string;
|
|
2723
|
-
provider: "
|
|
2791
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
2724
2792
|
id: string;
|
|
2725
2793
|
createdAt: number;
|
|
2726
2794
|
legacy: boolean;
|
|
2727
2795
|
lifecycle: "active" | "paused" | "archived";
|
|
2796
|
+
key?: string | undefined;
|
|
2728
2797
|
origin?: {
|
|
2729
2798
|
typeVersion: string;
|
|
2730
2799
|
} | undefined;
|
|
@@ -2782,16 +2851,23 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2782
2851
|
roleId: string;
|
|
2783
2852
|
})[];
|
|
2784
2853
|
code: string;
|
|
2785
|
-
provider: "
|
|
2854
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
2786
2855
|
id: string;
|
|
2787
2856
|
createdAt: number;
|
|
2788
2857
|
}>>]>>;
|
|
2789
2858
|
affectedCollections: z.ZodArray<z.ZodObject<{
|
|
2790
2859
|
id: z.ZodString;
|
|
2860
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2791
2861
|
title: z.ZodString;
|
|
2792
2862
|
quests: z.ZodArray<z.ZodString>;
|
|
2793
2863
|
}, z.core.$strict>>;
|
|
2794
2864
|
}, z.core.$strip>;
|
|
2865
|
+
declare const allocateQuestSchema: z.ZodObject<{
|
|
2866
|
+
actionId: z.ZodString;
|
|
2867
|
+
}, z.core.$strict>;
|
|
2868
|
+
declare const allocatedQuestSchema: z.ZodObject<{
|
|
2869
|
+
id: z.ZodString;
|
|
2870
|
+
}, z.core.$strip>;
|
|
2795
2871
|
|
|
2796
2872
|
type QuestActionResult = {
|
|
2797
2873
|
kind: "submitted";
|
|
@@ -2824,11 +2900,25 @@ type QuestController = (ActiveController & {
|
|
|
2824
2900
|
submit(): Promise<QuestActionResult>;
|
|
2825
2901
|
});
|
|
2826
2902
|
|
|
2827
|
-
|
|
2903
|
+
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
2904
|
+
name: z.ZodString;
|
|
2905
|
+
description: z.ZodDefault<z.ZodString>;
|
|
2906
|
+
}, z.core.$strict>;
|
|
2907
|
+
declare const createPointLedgerSchema: z.ZodObject<{
|
|
2908
|
+
name: z.ZodString;
|
|
2909
|
+
description: z.ZodDefault<z.ZodString>;
|
|
2910
|
+
actionId: z.ZodString;
|
|
2911
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2912
|
+
}, z.core.$strict>;
|
|
2828
2913
|
declare const pointLedgerSchema: z.ZodObject<{
|
|
2914
|
+
name: z.ZodString;
|
|
2915
|
+
description: z.ZodDefault<z.ZodString>;
|
|
2829
2916
|
id: z.ZodString;
|
|
2917
|
+
}, z.core.$strict>;
|
|
2918
|
+
declare const pointLedgerDeclarationSchema: z.ZodObject<{
|
|
2830
2919
|
name: z.ZodString;
|
|
2831
2920
|
description: z.ZodDefault<z.ZodString>;
|
|
2921
|
+
key: z.ZodString;
|
|
2832
2922
|
}, z.core.$strict>;
|
|
2833
2923
|
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
2834
2924
|
|
|
@@ -2871,9 +2961,6 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
|
|
|
2871
2961
|
}, z.core.$strip>>;
|
|
2872
2962
|
}, z.core.$strip>;
|
|
2873
2963
|
|
|
2874
|
-
/** An opaque prefixed resource ID with 131 bits of cryptographic randomness. */
|
|
2875
|
-
declare function resourceId(prefix: string): string;
|
|
2876
|
-
|
|
2877
2964
|
declare const collectionCodeSchema: z.ZodString;
|
|
2878
2965
|
declare const collectionPassSchema: z.ZodObject<{
|
|
2879
2966
|
code: z.ZodString;
|
|
@@ -3010,20 +3097,27 @@ declare function questConfiguration(release: PublishedRelease): {
|
|
|
3010
3097
|
|
|
3011
3098
|
/** Non-quest resources in the private hosted-build catalog artifact. */
|
|
3012
3099
|
declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
3013
|
-
collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3014
|
-
id: z.ZodString;
|
|
3015
|
-
title: z.ZodString;
|
|
3016
|
-
}, z.core.$strict>>>;
|
|
3017
3100
|
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3018
3101
|
code: z.ZodString;
|
|
3019
3102
|
provider: z.ZodEnum<{
|
|
3020
|
-
"fixture-pass": "fixture-pass";
|
|
3021
|
-
"fixture-fail": "fixture-fail";
|
|
3022
|
-
"fixture-unclear": "fixture-unclear";
|
|
3023
|
-
"fixture-error": "fixture-error";
|
|
3024
3103
|
"workers-ai": "workers-ai";
|
|
3025
3104
|
}>;
|
|
3026
3105
|
}, z.core.$strip>>>;
|
|
3106
|
+
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3107
|
+
title: z.ZodString;
|
|
3108
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3109
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3110
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3111
|
+
title: string;
|
|
3112
|
+
key?: string | undefined;
|
|
3113
|
+
id?: string | undefined;
|
|
3114
|
+
}, "id" | "key"> & {
|
|
3115
|
+
key: string;
|
|
3116
|
+
}, {
|
|
3117
|
+
title: string;
|
|
3118
|
+
key?: string | undefined;
|
|
3119
|
+
id?: string | undefined;
|
|
3120
|
+
}>>>>;
|
|
3027
3121
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3028
3122
|
staff: "staff";
|
|
3029
3123
|
quiz: "quiz";
|
|
@@ -3031,19 +3125,13 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3031
3125
|
automatic: "automatic";
|
|
3032
3126
|
claim: "claim";
|
|
3033
3127
|
}>>>;
|
|
3034
|
-
|
|
3035
|
-
|
|
3128
|
+
pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3129
|
+
name: z.ZodString;
|
|
3130
|
+
description: z.ZodDefault<z.ZodString>;
|
|
3131
|
+
key: z.ZodString;
|
|
3132
|
+
}, z.core.$strict>>>;
|
|
3133
|
+
referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3036
3134
|
title: z.ZodString;
|
|
3037
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3038
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3039
|
-
kind: z.ZodLiteral<"signup">;
|
|
3040
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3041
|
-
kind: z.ZodLiteral<"quest">;
|
|
3042
|
-
quest: z.ZodString;
|
|
3043
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3044
|
-
kind: z.ZodLiteral<"external">;
|
|
3045
|
-
}, z.core.$strict>], "kind">;
|
|
3046
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
3047
3135
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
3048
3136
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3049
3137
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
@@ -3090,6 +3178,16 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3090
3178
|
tier: z.ZodString;
|
|
3091
3179
|
}, z.core.$strict>]>>>;
|
|
3092
3180
|
}, z.core.$strict>>;
|
|
3181
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3182
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3183
|
+
kind: z.ZodLiteral<"signup">;
|
|
3184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3185
|
+
kind: z.ZodLiteral<"quest">;
|
|
3186
|
+
quest: z.ZodString;
|
|
3187
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3188
|
+
kind: z.ZodLiteral<"external">;
|
|
3189
|
+
}, z.core.$strict>], "kind">;
|
|
3190
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
3093
3191
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3094
3192
|
id: z.ZodString;
|
|
3095
3193
|
count: z.ZodNumber;
|
|
@@ -3125,13 +3223,207 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3125
3223
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
3126
3224
|
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
3127
3225
|
}, z.core.$strict>>>;
|
|
3128
|
-
|
|
3226
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3227
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3228
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3229
|
+
title: string;
|
|
3230
|
+
rewards: {
|
|
3231
|
+
inviter: ({
|
|
3232
|
+
kind: "tier";
|
|
3233
|
+
reward: {
|
|
3234
|
+
id: string;
|
|
3235
|
+
title: string;
|
|
3236
|
+
tiers: {
|
|
3237
|
+
id: string;
|
|
3238
|
+
title: string;
|
|
3239
|
+
}[];
|
|
3240
|
+
inventory: {
|
|
3241
|
+
kind: "untracked";
|
|
3242
|
+
};
|
|
3243
|
+
fulfillment: {
|
|
3244
|
+
kind: "staff-handover";
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
tier: string;
|
|
3248
|
+
} | {
|
|
3249
|
+
kind: "points";
|
|
3250
|
+
balance: string;
|
|
3251
|
+
amount: number;
|
|
3252
|
+
})[];
|
|
3253
|
+
invitee: ({
|
|
3254
|
+
kind: "tier";
|
|
3255
|
+
reward: {
|
|
3256
|
+
id: string;
|
|
3257
|
+
title: string;
|
|
3258
|
+
tiers: {
|
|
3259
|
+
id: string;
|
|
3260
|
+
title: string;
|
|
3261
|
+
}[];
|
|
3262
|
+
inventory: {
|
|
3263
|
+
kind: "untracked";
|
|
3264
|
+
};
|
|
3265
|
+
fulfillment: {
|
|
3266
|
+
kind: "staff-handover";
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
tier: string;
|
|
3270
|
+
} | {
|
|
3271
|
+
kind: "points";
|
|
3272
|
+
balance: string;
|
|
3273
|
+
amount: number;
|
|
3274
|
+
})[];
|
|
3275
|
+
};
|
|
3276
|
+
enabled: boolean;
|
|
3277
|
+
qualification: {
|
|
3278
|
+
kind: "signup";
|
|
3279
|
+
} | {
|
|
3280
|
+
kind: "quest";
|
|
3281
|
+
quest: string;
|
|
3282
|
+
} | {
|
|
3283
|
+
kind: "external";
|
|
3284
|
+
};
|
|
3285
|
+
milestones: {
|
|
3286
|
+
id: string;
|
|
3287
|
+
count: number;
|
|
3288
|
+
rewards: ({
|
|
3289
|
+
kind: "tier";
|
|
3290
|
+
reward: {
|
|
3291
|
+
id: string;
|
|
3292
|
+
title: string;
|
|
3293
|
+
tiers: {
|
|
3294
|
+
id: string;
|
|
3295
|
+
title: string;
|
|
3296
|
+
}[];
|
|
3297
|
+
inventory: {
|
|
3298
|
+
kind: "untracked";
|
|
3299
|
+
};
|
|
3300
|
+
fulfillment: {
|
|
3301
|
+
kind: "staff-handover";
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
3304
|
+
tier: string;
|
|
3305
|
+
} | {
|
|
3306
|
+
kind: "points";
|
|
3307
|
+
balance: string;
|
|
3308
|
+
amount: number;
|
|
3309
|
+
})[];
|
|
3310
|
+
}[];
|
|
3311
|
+
bonuses: {
|
|
3312
|
+
id: string;
|
|
3313
|
+
balance: string;
|
|
3314
|
+
basisPoints: number;
|
|
3315
|
+
external: boolean;
|
|
3316
|
+
quests?: string[] | undefined;
|
|
3317
|
+
durationDays?: number | undefined;
|
|
3318
|
+
maxPoints?: number | undefined;
|
|
3319
|
+
}[];
|
|
3320
|
+
inviterGroup?: string | undefined;
|
|
3321
|
+
key?: string | undefined;
|
|
3322
|
+
id?: string | undefined;
|
|
3323
|
+
}, "id" | "key"> & {
|
|
3324
|
+
key: string;
|
|
3325
|
+
}, {
|
|
3326
|
+
title: string;
|
|
3327
|
+
rewards: {
|
|
3328
|
+
inviter: ({
|
|
3329
|
+
kind: "tier";
|
|
3330
|
+
reward: {
|
|
3331
|
+
id: string;
|
|
3332
|
+
title: string;
|
|
3333
|
+
tiers: {
|
|
3334
|
+
id: string;
|
|
3335
|
+
title: string;
|
|
3336
|
+
}[];
|
|
3337
|
+
inventory: {
|
|
3338
|
+
kind: "untracked";
|
|
3339
|
+
};
|
|
3340
|
+
fulfillment: {
|
|
3341
|
+
kind: "staff-handover";
|
|
3342
|
+
};
|
|
3343
|
+
};
|
|
3344
|
+
tier: string;
|
|
3345
|
+
} | {
|
|
3346
|
+
kind: "points";
|
|
3347
|
+
balance: string;
|
|
3348
|
+
amount: number;
|
|
3349
|
+
})[];
|
|
3350
|
+
invitee: ({
|
|
3351
|
+
kind: "tier";
|
|
3352
|
+
reward: {
|
|
3353
|
+
id: string;
|
|
3354
|
+
title: string;
|
|
3355
|
+
tiers: {
|
|
3356
|
+
id: string;
|
|
3357
|
+
title: string;
|
|
3358
|
+
}[];
|
|
3359
|
+
inventory: {
|
|
3360
|
+
kind: "untracked";
|
|
3361
|
+
};
|
|
3362
|
+
fulfillment: {
|
|
3363
|
+
kind: "staff-handover";
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3366
|
+
tier: string;
|
|
3367
|
+
} | {
|
|
3368
|
+
kind: "points";
|
|
3369
|
+
balance: string;
|
|
3370
|
+
amount: number;
|
|
3371
|
+
})[];
|
|
3372
|
+
};
|
|
3373
|
+
enabled: boolean;
|
|
3374
|
+
qualification: {
|
|
3375
|
+
kind: "signup";
|
|
3376
|
+
} | {
|
|
3377
|
+
kind: "quest";
|
|
3378
|
+
quest: string;
|
|
3379
|
+
} | {
|
|
3380
|
+
kind: "external";
|
|
3381
|
+
};
|
|
3382
|
+
milestones: {
|
|
3383
|
+
id: string;
|
|
3384
|
+
count: number;
|
|
3385
|
+
rewards: ({
|
|
3386
|
+
kind: "tier";
|
|
3387
|
+
reward: {
|
|
3388
|
+
id: string;
|
|
3389
|
+
title: string;
|
|
3390
|
+
tiers: {
|
|
3391
|
+
id: string;
|
|
3392
|
+
title: string;
|
|
3393
|
+
}[];
|
|
3394
|
+
inventory: {
|
|
3395
|
+
kind: "untracked";
|
|
3396
|
+
};
|
|
3397
|
+
fulfillment: {
|
|
3398
|
+
kind: "staff-handover";
|
|
3399
|
+
};
|
|
3400
|
+
};
|
|
3401
|
+
tier: string;
|
|
3402
|
+
} | {
|
|
3403
|
+
kind: "points";
|
|
3404
|
+
balance: string;
|
|
3405
|
+
amount: number;
|
|
3406
|
+
})[];
|
|
3407
|
+
}[];
|
|
3408
|
+
bonuses: {
|
|
3409
|
+
id: string;
|
|
3410
|
+
balance: string;
|
|
3411
|
+
basisPoints: number;
|
|
3412
|
+
external: boolean;
|
|
3413
|
+
quests?: string[] | undefined;
|
|
3414
|
+
durationDays?: number | undefined;
|
|
3415
|
+
maxPoints?: number | undefined;
|
|
3416
|
+
}[];
|
|
3417
|
+
inviterGroup?: string | undefined;
|
|
3418
|
+
key?: string | undefined;
|
|
3419
|
+
id?: string | undefined;
|
|
3420
|
+
}>>, z.ZodObject<{
|
|
3129
3421
|
code: z.ZodString;
|
|
3130
3422
|
}, z.core.$strict>]>>>;
|
|
3131
|
-
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3132
|
-
id: z.ZodString;
|
|
3133
|
-
title: z.ZodString;
|
|
3423
|
+
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3134
3424
|
balance: z.ZodString;
|
|
3425
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3426
|
+
title: z.ZodString;
|
|
3135
3427
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3136
3428
|
kind: z.ZodLiteral<"balance">;
|
|
3137
3429
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3180,27 +3472,123 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3180
3472
|
participants: "participants";
|
|
3181
3473
|
public: "public";
|
|
3182
3474
|
}>>;
|
|
3183
|
-
|
|
3184
|
-
|
|
3475
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3476
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3477
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3478
|
+
balance: string;
|
|
3479
|
+
title: string;
|
|
3480
|
+
score: {
|
|
3481
|
+
kind: "balance";
|
|
3482
|
+
} | {
|
|
3483
|
+
window: {
|
|
3484
|
+
kind: "fixed";
|
|
3485
|
+
start: number;
|
|
3486
|
+
end: number;
|
|
3487
|
+
} | {
|
|
3488
|
+
kind: "all-time";
|
|
3489
|
+
} | {
|
|
3490
|
+
kind: "rolling";
|
|
3491
|
+
days: number;
|
|
3492
|
+
} | {
|
|
3493
|
+
kind: "calendar";
|
|
3494
|
+
period: "day" | "week" | "month";
|
|
3495
|
+
timeZone: string;
|
|
3496
|
+
};
|
|
3497
|
+
kind: "earned";
|
|
3498
|
+
quests?: string[] | undefined;
|
|
3499
|
+
} | {
|
|
3500
|
+
kind: "net";
|
|
3501
|
+
window: {
|
|
3502
|
+
kind: "fixed";
|
|
3503
|
+
start: number;
|
|
3504
|
+
end: number;
|
|
3505
|
+
} | {
|
|
3506
|
+
kind: "all-time";
|
|
3507
|
+
} | {
|
|
3508
|
+
kind: "rolling";
|
|
3509
|
+
days: number;
|
|
3510
|
+
} | {
|
|
3511
|
+
kind: "calendar";
|
|
3512
|
+
period: "day" | "week" | "month";
|
|
3513
|
+
timeZone: string;
|
|
3514
|
+
};
|
|
3515
|
+
};
|
|
3516
|
+
access: "participants" | "public";
|
|
3517
|
+
group?: string | undefined;
|
|
3518
|
+
key?: string | undefined;
|
|
3519
|
+
id?: string | undefined;
|
|
3520
|
+
}, "id" | "key"> & {
|
|
3521
|
+
key: string;
|
|
3522
|
+
}, {
|
|
3523
|
+
balance: string;
|
|
3524
|
+
title: string;
|
|
3525
|
+
score: {
|
|
3526
|
+
kind: "balance";
|
|
3527
|
+
} | {
|
|
3528
|
+
window: {
|
|
3529
|
+
kind: "fixed";
|
|
3530
|
+
start: number;
|
|
3531
|
+
end: number;
|
|
3532
|
+
} | {
|
|
3533
|
+
kind: "all-time";
|
|
3534
|
+
} | {
|
|
3535
|
+
kind: "rolling";
|
|
3536
|
+
days: number;
|
|
3537
|
+
} | {
|
|
3538
|
+
kind: "calendar";
|
|
3539
|
+
period: "day" | "week" | "month";
|
|
3540
|
+
timeZone: string;
|
|
3541
|
+
};
|
|
3542
|
+
kind: "earned";
|
|
3543
|
+
quests?: string[] | undefined;
|
|
3544
|
+
} | {
|
|
3545
|
+
kind: "net";
|
|
3546
|
+
window: {
|
|
3547
|
+
kind: "fixed";
|
|
3548
|
+
start: number;
|
|
3549
|
+
end: number;
|
|
3550
|
+
} | {
|
|
3551
|
+
kind: "all-time";
|
|
3552
|
+
} | {
|
|
3553
|
+
kind: "rolling";
|
|
3554
|
+
days: number;
|
|
3555
|
+
} | {
|
|
3556
|
+
kind: "calendar";
|
|
3557
|
+
period: "day" | "week" | "month";
|
|
3558
|
+
timeZone: string;
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
access: "participants" | "public";
|
|
3562
|
+
group?: string | undefined;
|
|
3563
|
+
key?: string | undefined;
|
|
3564
|
+
id?: string | undefined;
|
|
3565
|
+
}>>, z.ZodObject<{
|
|
3185
3566
|
code: z.ZodString;
|
|
3186
3567
|
}, z.core.$strict>]>>>;
|
|
3187
3568
|
}, z.core.$strict>;
|
|
3188
3569
|
/** One manifest bundle. Missing entries never delete remotely owned resources. */
|
|
3189
3570
|
declare const projectDeploymentSchema: z.ZodObject<{
|
|
3190
|
-
collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3191
|
-
id: z.ZodString;
|
|
3192
|
-
title: z.ZodString;
|
|
3193
|
-
}, z.core.$strict>>>;
|
|
3194
3571
|
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3195
3572
|
code: z.ZodString;
|
|
3196
3573
|
provider: z.ZodEnum<{
|
|
3197
|
-
"fixture-pass": "fixture-pass";
|
|
3198
|
-
"fixture-fail": "fixture-fail";
|
|
3199
|
-
"fixture-unclear": "fixture-unclear";
|
|
3200
|
-
"fixture-error": "fixture-error";
|
|
3201
3574
|
"workers-ai": "workers-ai";
|
|
3202
3575
|
}>;
|
|
3203
3576
|
}, z.core.$strip>>>;
|
|
3577
|
+
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3578
|
+
title: z.ZodString;
|
|
3579
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3580
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3581
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3582
|
+
title: string;
|
|
3583
|
+
key?: string | undefined;
|
|
3584
|
+
id?: string | undefined;
|
|
3585
|
+
}, "id" | "key"> & {
|
|
3586
|
+
key: string;
|
|
3587
|
+
}, {
|
|
3588
|
+
title: string;
|
|
3589
|
+
key?: string | undefined;
|
|
3590
|
+
id?: string | undefined;
|
|
3591
|
+
}>>>>;
|
|
3204
3592
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3205
3593
|
staff: "staff";
|
|
3206
3594
|
quiz: "quiz";
|
|
@@ -3208,19 +3596,13 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3208
3596
|
automatic: "automatic";
|
|
3209
3597
|
claim: "claim";
|
|
3210
3598
|
}>>>;
|
|
3211
|
-
|
|
3212
|
-
|
|
3599
|
+
pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3600
|
+
name: z.ZodString;
|
|
3601
|
+
description: z.ZodDefault<z.ZodString>;
|
|
3602
|
+
key: z.ZodString;
|
|
3603
|
+
}, z.core.$strict>>>;
|
|
3604
|
+
referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3213
3605
|
title: z.ZodString;
|
|
3214
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3215
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3216
|
-
kind: z.ZodLiteral<"signup">;
|
|
3217
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3218
|
-
kind: z.ZodLiteral<"quest">;
|
|
3219
|
-
quest: z.ZodString;
|
|
3220
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3221
|
-
kind: z.ZodLiteral<"external">;
|
|
3222
|
-
}, z.core.$strict>], "kind">;
|
|
3223
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
3224
3606
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
3225
3607
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3226
3608
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
@@ -3267,6 +3649,16 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3267
3649
|
tier: z.ZodString;
|
|
3268
3650
|
}, z.core.$strict>]>>>;
|
|
3269
3651
|
}, z.core.$strict>>;
|
|
3652
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3653
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3654
|
+
kind: z.ZodLiteral<"signup">;
|
|
3655
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3656
|
+
kind: z.ZodLiteral<"quest">;
|
|
3657
|
+
quest: z.ZodString;
|
|
3658
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3659
|
+
kind: z.ZodLiteral<"external">;
|
|
3660
|
+
}, z.core.$strict>], "kind">;
|
|
3661
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
3270
3662
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3271
3663
|
id: z.ZodString;
|
|
3272
3664
|
count: z.ZodNumber;
|
|
@@ -3302,13 +3694,207 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3302
3694
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
3303
3695
|
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
3304
3696
|
}, z.core.$strict>>>;
|
|
3305
|
-
|
|
3697
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3698
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3699
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3700
|
+
title: string;
|
|
3701
|
+
rewards: {
|
|
3702
|
+
inviter: ({
|
|
3703
|
+
kind: "tier";
|
|
3704
|
+
reward: {
|
|
3705
|
+
id: string;
|
|
3706
|
+
title: string;
|
|
3707
|
+
tiers: {
|
|
3708
|
+
id: string;
|
|
3709
|
+
title: string;
|
|
3710
|
+
}[];
|
|
3711
|
+
inventory: {
|
|
3712
|
+
kind: "untracked";
|
|
3713
|
+
};
|
|
3714
|
+
fulfillment: {
|
|
3715
|
+
kind: "staff-handover";
|
|
3716
|
+
};
|
|
3717
|
+
};
|
|
3718
|
+
tier: string;
|
|
3719
|
+
} | {
|
|
3720
|
+
kind: "points";
|
|
3721
|
+
balance: string;
|
|
3722
|
+
amount: number;
|
|
3723
|
+
})[];
|
|
3724
|
+
invitee: ({
|
|
3725
|
+
kind: "tier";
|
|
3726
|
+
reward: {
|
|
3727
|
+
id: string;
|
|
3728
|
+
title: string;
|
|
3729
|
+
tiers: {
|
|
3730
|
+
id: string;
|
|
3731
|
+
title: string;
|
|
3732
|
+
}[];
|
|
3733
|
+
inventory: {
|
|
3734
|
+
kind: "untracked";
|
|
3735
|
+
};
|
|
3736
|
+
fulfillment: {
|
|
3737
|
+
kind: "staff-handover";
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
tier: string;
|
|
3741
|
+
} | {
|
|
3742
|
+
kind: "points";
|
|
3743
|
+
balance: string;
|
|
3744
|
+
amount: number;
|
|
3745
|
+
})[];
|
|
3746
|
+
};
|
|
3747
|
+
enabled: boolean;
|
|
3748
|
+
qualification: {
|
|
3749
|
+
kind: "signup";
|
|
3750
|
+
} | {
|
|
3751
|
+
kind: "quest";
|
|
3752
|
+
quest: string;
|
|
3753
|
+
} | {
|
|
3754
|
+
kind: "external";
|
|
3755
|
+
};
|
|
3756
|
+
milestones: {
|
|
3757
|
+
id: string;
|
|
3758
|
+
count: number;
|
|
3759
|
+
rewards: ({
|
|
3760
|
+
kind: "tier";
|
|
3761
|
+
reward: {
|
|
3762
|
+
id: string;
|
|
3763
|
+
title: string;
|
|
3764
|
+
tiers: {
|
|
3765
|
+
id: string;
|
|
3766
|
+
title: string;
|
|
3767
|
+
}[];
|
|
3768
|
+
inventory: {
|
|
3769
|
+
kind: "untracked";
|
|
3770
|
+
};
|
|
3771
|
+
fulfillment: {
|
|
3772
|
+
kind: "staff-handover";
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3775
|
+
tier: string;
|
|
3776
|
+
} | {
|
|
3777
|
+
kind: "points";
|
|
3778
|
+
balance: string;
|
|
3779
|
+
amount: number;
|
|
3780
|
+
})[];
|
|
3781
|
+
}[];
|
|
3782
|
+
bonuses: {
|
|
3783
|
+
id: string;
|
|
3784
|
+
balance: string;
|
|
3785
|
+
basisPoints: number;
|
|
3786
|
+
external: boolean;
|
|
3787
|
+
quests?: string[] | undefined;
|
|
3788
|
+
durationDays?: number | undefined;
|
|
3789
|
+
maxPoints?: number | undefined;
|
|
3790
|
+
}[];
|
|
3791
|
+
inviterGroup?: string | undefined;
|
|
3792
|
+
key?: string | undefined;
|
|
3793
|
+
id?: string | undefined;
|
|
3794
|
+
}, "id" | "key"> & {
|
|
3795
|
+
key: string;
|
|
3796
|
+
}, {
|
|
3797
|
+
title: string;
|
|
3798
|
+
rewards: {
|
|
3799
|
+
inviter: ({
|
|
3800
|
+
kind: "tier";
|
|
3801
|
+
reward: {
|
|
3802
|
+
id: string;
|
|
3803
|
+
title: string;
|
|
3804
|
+
tiers: {
|
|
3805
|
+
id: string;
|
|
3806
|
+
title: string;
|
|
3807
|
+
}[];
|
|
3808
|
+
inventory: {
|
|
3809
|
+
kind: "untracked";
|
|
3810
|
+
};
|
|
3811
|
+
fulfillment: {
|
|
3812
|
+
kind: "staff-handover";
|
|
3813
|
+
};
|
|
3814
|
+
};
|
|
3815
|
+
tier: string;
|
|
3816
|
+
} | {
|
|
3817
|
+
kind: "points";
|
|
3818
|
+
balance: string;
|
|
3819
|
+
amount: number;
|
|
3820
|
+
})[];
|
|
3821
|
+
invitee: ({
|
|
3822
|
+
kind: "tier";
|
|
3823
|
+
reward: {
|
|
3824
|
+
id: string;
|
|
3825
|
+
title: string;
|
|
3826
|
+
tiers: {
|
|
3827
|
+
id: string;
|
|
3828
|
+
title: string;
|
|
3829
|
+
}[];
|
|
3830
|
+
inventory: {
|
|
3831
|
+
kind: "untracked";
|
|
3832
|
+
};
|
|
3833
|
+
fulfillment: {
|
|
3834
|
+
kind: "staff-handover";
|
|
3835
|
+
};
|
|
3836
|
+
};
|
|
3837
|
+
tier: string;
|
|
3838
|
+
} | {
|
|
3839
|
+
kind: "points";
|
|
3840
|
+
balance: string;
|
|
3841
|
+
amount: number;
|
|
3842
|
+
})[];
|
|
3843
|
+
};
|
|
3844
|
+
enabled: boolean;
|
|
3845
|
+
qualification: {
|
|
3846
|
+
kind: "signup";
|
|
3847
|
+
} | {
|
|
3848
|
+
kind: "quest";
|
|
3849
|
+
quest: string;
|
|
3850
|
+
} | {
|
|
3851
|
+
kind: "external";
|
|
3852
|
+
};
|
|
3853
|
+
milestones: {
|
|
3854
|
+
id: string;
|
|
3855
|
+
count: number;
|
|
3856
|
+
rewards: ({
|
|
3857
|
+
kind: "tier";
|
|
3858
|
+
reward: {
|
|
3859
|
+
id: string;
|
|
3860
|
+
title: string;
|
|
3861
|
+
tiers: {
|
|
3862
|
+
id: string;
|
|
3863
|
+
title: string;
|
|
3864
|
+
}[];
|
|
3865
|
+
inventory: {
|
|
3866
|
+
kind: "untracked";
|
|
3867
|
+
};
|
|
3868
|
+
fulfillment: {
|
|
3869
|
+
kind: "staff-handover";
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
tier: string;
|
|
3873
|
+
} | {
|
|
3874
|
+
kind: "points";
|
|
3875
|
+
balance: string;
|
|
3876
|
+
amount: number;
|
|
3877
|
+
})[];
|
|
3878
|
+
}[];
|
|
3879
|
+
bonuses: {
|
|
3880
|
+
id: string;
|
|
3881
|
+
balance: string;
|
|
3882
|
+
basisPoints: number;
|
|
3883
|
+
external: boolean;
|
|
3884
|
+
quests?: string[] | undefined;
|
|
3885
|
+
durationDays?: number | undefined;
|
|
3886
|
+
maxPoints?: number | undefined;
|
|
3887
|
+
}[];
|
|
3888
|
+
inviterGroup?: string | undefined;
|
|
3889
|
+
key?: string | undefined;
|
|
3890
|
+
id?: string | undefined;
|
|
3891
|
+
}>>, z.ZodObject<{
|
|
3306
3892
|
code: z.ZodString;
|
|
3307
3893
|
}, z.core.$strict>]>>>;
|
|
3308
|
-
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3309
|
-
id: z.ZodString;
|
|
3310
|
-
title: z.ZodString;
|
|
3894
|
+
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3311
3895
|
balance: z.ZodString;
|
|
3896
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3897
|
+
title: z.ZodString;
|
|
3312
3898
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3313
3899
|
kind: z.ZodLiteral<"balance">;
|
|
3314
3900
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3357,8 +3943,97 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3357
3943
|
participants: "participants";
|
|
3358
3944
|
public: "public";
|
|
3359
3945
|
}>>;
|
|
3360
|
-
|
|
3361
|
-
|
|
3946
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3947
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3948
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
3949
|
+
balance: string;
|
|
3950
|
+
title: string;
|
|
3951
|
+
score: {
|
|
3952
|
+
kind: "balance";
|
|
3953
|
+
} | {
|
|
3954
|
+
window: {
|
|
3955
|
+
kind: "fixed";
|
|
3956
|
+
start: number;
|
|
3957
|
+
end: number;
|
|
3958
|
+
} | {
|
|
3959
|
+
kind: "all-time";
|
|
3960
|
+
} | {
|
|
3961
|
+
kind: "rolling";
|
|
3962
|
+
days: number;
|
|
3963
|
+
} | {
|
|
3964
|
+
kind: "calendar";
|
|
3965
|
+
period: "day" | "week" | "month";
|
|
3966
|
+
timeZone: string;
|
|
3967
|
+
};
|
|
3968
|
+
kind: "earned";
|
|
3969
|
+
quests?: string[] | undefined;
|
|
3970
|
+
} | {
|
|
3971
|
+
kind: "net";
|
|
3972
|
+
window: {
|
|
3973
|
+
kind: "fixed";
|
|
3974
|
+
start: number;
|
|
3975
|
+
end: number;
|
|
3976
|
+
} | {
|
|
3977
|
+
kind: "all-time";
|
|
3978
|
+
} | {
|
|
3979
|
+
kind: "rolling";
|
|
3980
|
+
days: number;
|
|
3981
|
+
} | {
|
|
3982
|
+
kind: "calendar";
|
|
3983
|
+
period: "day" | "week" | "month";
|
|
3984
|
+
timeZone: string;
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3987
|
+
access: "participants" | "public";
|
|
3988
|
+
group?: string | undefined;
|
|
3989
|
+
key?: string | undefined;
|
|
3990
|
+
id?: string | undefined;
|
|
3991
|
+
}, "id" | "key"> & {
|
|
3992
|
+
key: string;
|
|
3993
|
+
}, {
|
|
3994
|
+
balance: string;
|
|
3995
|
+
title: string;
|
|
3996
|
+
score: {
|
|
3997
|
+
kind: "balance";
|
|
3998
|
+
} | {
|
|
3999
|
+
window: {
|
|
4000
|
+
kind: "fixed";
|
|
4001
|
+
start: number;
|
|
4002
|
+
end: number;
|
|
4003
|
+
} | {
|
|
4004
|
+
kind: "all-time";
|
|
4005
|
+
} | {
|
|
4006
|
+
kind: "rolling";
|
|
4007
|
+
days: number;
|
|
4008
|
+
} | {
|
|
4009
|
+
kind: "calendar";
|
|
4010
|
+
period: "day" | "week" | "month";
|
|
4011
|
+
timeZone: string;
|
|
4012
|
+
};
|
|
4013
|
+
kind: "earned";
|
|
4014
|
+
quests?: string[] | undefined;
|
|
4015
|
+
} | {
|
|
4016
|
+
kind: "net";
|
|
4017
|
+
window: {
|
|
4018
|
+
kind: "fixed";
|
|
4019
|
+
start: number;
|
|
4020
|
+
end: number;
|
|
4021
|
+
} | {
|
|
4022
|
+
kind: "all-time";
|
|
4023
|
+
} | {
|
|
4024
|
+
kind: "rolling";
|
|
4025
|
+
days: number;
|
|
4026
|
+
} | {
|
|
4027
|
+
kind: "calendar";
|
|
4028
|
+
period: "day" | "week" | "month";
|
|
4029
|
+
timeZone: string;
|
|
4030
|
+
};
|
|
4031
|
+
};
|
|
4032
|
+
access: "participants" | "public";
|
|
4033
|
+
group?: string | undefined;
|
|
4034
|
+
key?: string | undefined;
|
|
4035
|
+
id?: string | undefined;
|
|
4036
|
+
}>>, z.ZodObject<{
|
|
3362
4037
|
code: z.ZodString;
|
|
3363
4038
|
}, z.core.$strict>]>>>;
|
|
3364
4039
|
releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -3373,10 +4048,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3373
4048
|
correct: z.ZodString;
|
|
3374
4049
|
}, z.core.$strict>>]>>;
|
|
3375
4050
|
provider: z.ZodEnum<{
|
|
3376
|
-
"fixture-pass": "fixture-pass";
|
|
3377
|
-
"fixture-fail": "fixture-fail";
|
|
3378
|
-
"fixture-unclear": "fixture-unclear";
|
|
3379
|
-
"fixture-error": "fixture-error";
|
|
3380
4051
|
"workers-ai": "workers-ai";
|
|
3381
4052
|
}>;
|
|
3382
4053
|
expectedRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3386,6 +4057,11 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3386
4057
|
declare const deploymentPreviewSchema: z.ZodObject<{
|
|
3387
4058
|
id: z.ZodString;
|
|
3388
4059
|
baseRevision: z.ZodNumber;
|
|
4060
|
+
pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4061
|
+
name: z.ZodString;
|
|
4062
|
+
description: z.ZodDefault<z.ZodString>;
|
|
4063
|
+
id: z.ZodString;
|
|
4064
|
+
}, z.core.$strict>>>;
|
|
3389
4065
|
releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3390
4066
|
quest: z.ZodString;
|
|
3391
4067
|
runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
@@ -3427,6 +4103,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3427
4103
|
kind: z.ZodLiteral<"resource">;
|
|
3428
4104
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
3429
4105
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
4106
|
+
provider: z.ZodLiteral<"domino">;
|
|
4107
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
4108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3430
4109
|
provider: z.ZodLiteral<"discord">;
|
|
3431
4110
|
resource: z.ZodLiteral<"channel">;
|
|
3432
4111
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -3555,21 +4234,22 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3555
4234
|
member: "member";
|
|
3556
4235
|
}>;
|
|
3557
4236
|
period: z.ZodEnum<{
|
|
3558
|
-
day: "day";
|
|
3559
4237
|
lifetime: "lifetime";
|
|
4238
|
+
day: "day";
|
|
3560
4239
|
}>;
|
|
3561
4240
|
limit: z.ZodNumber;
|
|
3562
4241
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
3563
4242
|
balance: z.ZodString;
|
|
3564
4243
|
}, z.core.$strict>]>;
|
|
3565
4244
|
}, z.core.$strict>>>;
|
|
4245
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3566
4246
|
code: z.ZodString;
|
|
3567
4247
|
provider: z.ZodEnum<{
|
|
4248
|
+
"workers-ai": "workers-ai";
|
|
3568
4249
|
"fixture-pass": "fixture-pass";
|
|
3569
4250
|
"fixture-fail": "fixture-fail";
|
|
3570
4251
|
"fixture-unclear": "fixture-unclear";
|
|
3571
4252
|
"fixture-error": "fixture-error";
|
|
3572
|
-
"workers-ai": "workers-ai";
|
|
3573
4253
|
}>;
|
|
3574
4254
|
id: z.ZodString;
|
|
3575
4255
|
createdAt: z.ZodNumber;
|
|
@@ -3637,11 +4317,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3637
4317
|
}, z.core.$strict>]>>;
|
|
3638
4318
|
code: z.ZodString;
|
|
3639
4319
|
provider: z.ZodEnum<{
|
|
4320
|
+
"workers-ai": "workers-ai";
|
|
3640
4321
|
"fixture-pass": "fixture-pass";
|
|
3641
4322
|
"fixture-fail": "fixture-fail";
|
|
3642
4323
|
"fixture-unclear": "fixture-unclear";
|
|
3643
4324
|
"fixture-error": "fixture-error";
|
|
3644
|
-
"workers-ai": "workers-ai";
|
|
3645
4325
|
}>;
|
|
3646
4326
|
id: z.ZodString;
|
|
3647
4327
|
createdAt: z.ZodNumber;
|
|
@@ -3687,6 +4367,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3687
4367
|
provider: "discord";
|
|
3688
4368
|
resource: "channel";
|
|
3689
4369
|
types: ("text" | "announcement")[];
|
|
4370
|
+
} | {
|
|
4371
|
+
provider: "domino";
|
|
4372
|
+
resource: "point-ledger";
|
|
3690
4373
|
} | {
|
|
3691
4374
|
provider: "discord";
|
|
3692
4375
|
resource: "role";
|
|
@@ -3795,18 +4478,19 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3795
4478
|
budgets: {
|
|
3796
4479
|
id: string;
|
|
3797
4480
|
scope: "project" | "member";
|
|
3798
|
-
period: "
|
|
4481
|
+
period: "lifetime" | "day";
|
|
3799
4482
|
limit: number;
|
|
3800
4483
|
cost: number | {
|
|
3801
4484
|
balance: string;
|
|
3802
4485
|
};
|
|
3803
4486
|
}[];
|
|
3804
4487
|
code: string;
|
|
3805
|
-
provider: "
|
|
4488
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
3806
4489
|
id: string;
|
|
3807
4490
|
createdAt: number;
|
|
3808
4491
|
legacy: boolean;
|
|
3809
4492
|
lifecycle: "active" | "paused" | "archived";
|
|
4493
|
+
key?: string | undefined;
|
|
3810
4494
|
origin?: {
|
|
3811
4495
|
typeVersion: string;
|
|
3812
4496
|
} | undefined;
|
|
@@ -3864,11 +4548,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3864
4548
|
roleId: string;
|
|
3865
4549
|
})[];
|
|
3866
4550
|
code: string;
|
|
3867
|
-
provider: "
|
|
4551
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
3868
4552
|
id: string;
|
|
3869
4553
|
createdAt: number;
|
|
3870
4554
|
}>>]>>;
|
|
3871
4555
|
types: z.ZodArray<z.ZodObject<{
|
|
4556
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3872
4557
|
id: z.ZodString;
|
|
3873
4558
|
version: z.ZodString;
|
|
3874
4559
|
code: z.ZodString;
|
|
@@ -3913,6 +4598,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3913
4598
|
kind: z.ZodLiteral<"resource">;
|
|
3914
4599
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
3915
4600
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
4601
|
+
provider: z.ZodLiteral<"domino">;
|
|
4602
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
4603
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3916
4604
|
provider: z.ZodLiteral<"discord">;
|
|
3917
4605
|
resource: z.ZodLiteral<"channel">;
|
|
3918
4606
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -4041,8 +4729,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4041
4729
|
member: "member";
|
|
4042
4730
|
}>;
|
|
4043
4731
|
period: z.ZodEnum<{
|
|
4044
|
-
day: "day";
|
|
4045
4732
|
lifetime: "lifetime";
|
|
4733
|
+
day: "day";
|
|
4046
4734
|
}>;
|
|
4047
4735
|
limit: z.ZodNumber;
|
|
4048
4736
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -4051,16 +4739,17 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4051
4739
|
}, z.core.$strict>>>;
|
|
4052
4740
|
}, z.core.$strict>;
|
|
4053
4741
|
provider: z.ZodEnum<{
|
|
4742
|
+
"workers-ai": "workers-ai";
|
|
4054
4743
|
"fixture-pass": "fixture-pass";
|
|
4055
4744
|
"fixture-fail": "fixture-fail";
|
|
4056
4745
|
"fixture-unclear": "fixture-unclear";
|
|
4057
4746
|
"fixture-error": "fixture-error";
|
|
4058
|
-
"workers-ai": "workers-ai";
|
|
4059
4747
|
}>;
|
|
4060
4748
|
createdAt: z.ZodNumber;
|
|
4061
4749
|
}, z.core.$strip>>;
|
|
4062
4750
|
collections: z.ZodArray<z.ZodObject<{
|
|
4063
4751
|
id: z.ZodString;
|
|
4752
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4064
4753
|
title: z.ZodString;
|
|
4065
4754
|
quests: z.ZodArray<z.ZodString>;
|
|
4066
4755
|
}, z.core.$strict>>;
|
|
@@ -4075,6 +4764,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4075
4764
|
version: z.ZodString;
|
|
4076
4765
|
definition: z.ZodObject<{
|
|
4077
4766
|
id: z.ZodString;
|
|
4767
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4078
4768
|
title: z.ZodString;
|
|
4079
4769
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4080
4770
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -4176,6 +4866,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4176
4866
|
version: z.ZodString;
|
|
4177
4867
|
definition: z.ZodObject<{
|
|
4178
4868
|
id: z.ZodString;
|
|
4869
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4179
4870
|
title: z.ZodString;
|
|
4180
4871
|
balance: z.ZodString;
|
|
4181
4872
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -4317,6 +5008,11 @@ declare const publishDeploymentSchema: z.ZodObject<{
|
|
|
4317
5008
|
declare const deploymentResultSchema: z.ZodObject<{
|
|
4318
5009
|
id: z.ZodString;
|
|
4319
5010
|
baseRevision: z.ZodNumber;
|
|
5011
|
+
pointLedgers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5012
|
+
name: z.ZodString;
|
|
5013
|
+
description: z.ZodDefault<z.ZodString>;
|
|
5014
|
+
id: z.ZodString;
|
|
5015
|
+
}, z.core.$strict>>>;
|
|
4320
5016
|
releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4321
5017
|
quest: z.ZodString;
|
|
4322
5018
|
runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
@@ -4358,6 +5054,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4358
5054
|
kind: z.ZodLiteral<"resource">;
|
|
4359
5055
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
4360
5056
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
5057
|
+
provider: z.ZodLiteral<"domino">;
|
|
5058
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
5059
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4361
5060
|
provider: z.ZodLiteral<"discord">;
|
|
4362
5061
|
resource: z.ZodLiteral<"channel">;
|
|
4363
5062
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -4486,21 +5185,22 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4486
5185
|
member: "member";
|
|
4487
5186
|
}>;
|
|
4488
5187
|
period: z.ZodEnum<{
|
|
4489
|
-
day: "day";
|
|
4490
5188
|
lifetime: "lifetime";
|
|
5189
|
+
day: "day";
|
|
4491
5190
|
}>;
|
|
4492
5191
|
limit: z.ZodNumber;
|
|
4493
5192
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
4494
5193
|
balance: z.ZodString;
|
|
4495
5194
|
}, z.core.$strict>]>;
|
|
4496
5195
|
}, z.core.$strict>>>;
|
|
5196
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4497
5197
|
code: z.ZodString;
|
|
4498
5198
|
provider: z.ZodEnum<{
|
|
5199
|
+
"workers-ai": "workers-ai";
|
|
4499
5200
|
"fixture-pass": "fixture-pass";
|
|
4500
5201
|
"fixture-fail": "fixture-fail";
|
|
4501
5202
|
"fixture-unclear": "fixture-unclear";
|
|
4502
5203
|
"fixture-error": "fixture-error";
|
|
4503
|
-
"workers-ai": "workers-ai";
|
|
4504
5204
|
}>;
|
|
4505
5205
|
id: z.ZodString;
|
|
4506
5206
|
createdAt: z.ZodNumber;
|
|
@@ -4568,11 +5268,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4568
5268
|
}, z.core.$strict>]>>;
|
|
4569
5269
|
code: z.ZodString;
|
|
4570
5270
|
provider: z.ZodEnum<{
|
|
5271
|
+
"workers-ai": "workers-ai";
|
|
4571
5272
|
"fixture-pass": "fixture-pass";
|
|
4572
5273
|
"fixture-fail": "fixture-fail";
|
|
4573
5274
|
"fixture-unclear": "fixture-unclear";
|
|
4574
5275
|
"fixture-error": "fixture-error";
|
|
4575
|
-
"workers-ai": "workers-ai";
|
|
4576
5276
|
}>;
|
|
4577
5277
|
id: z.ZodString;
|
|
4578
5278
|
createdAt: z.ZodNumber;
|
|
@@ -4618,6 +5318,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4618
5318
|
provider: "discord";
|
|
4619
5319
|
resource: "channel";
|
|
4620
5320
|
types: ("text" | "announcement")[];
|
|
5321
|
+
} | {
|
|
5322
|
+
provider: "domino";
|
|
5323
|
+
resource: "point-ledger";
|
|
4621
5324
|
} | {
|
|
4622
5325
|
provider: "discord";
|
|
4623
5326
|
resource: "role";
|
|
@@ -4726,18 +5429,19 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4726
5429
|
budgets: {
|
|
4727
5430
|
id: string;
|
|
4728
5431
|
scope: "project" | "member";
|
|
4729
|
-
period: "
|
|
5432
|
+
period: "lifetime" | "day";
|
|
4730
5433
|
limit: number;
|
|
4731
5434
|
cost: number | {
|
|
4732
5435
|
balance: string;
|
|
4733
5436
|
};
|
|
4734
5437
|
}[];
|
|
4735
5438
|
code: string;
|
|
4736
|
-
provider: "
|
|
5439
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
4737
5440
|
id: string;
|
|
4738
5441
|
createdAt: number;
|
|
4739
5442
|
legacy: boolean;
|
|
4740
5443
|
lifecycle: "active" | "paused" | "archived";
|
|
5444
|
+
key?: string | undefined;
|
|
4741
5445
|
origin?: {
|
|
4742
5446
|
typeVersion: string;
|
|
4743
5447
|
} | undefined;
|
|
@@ -4795,11 +5499,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4795
5499
|
roleId: string;
|
|
4796
5500
|
})[];
|
|
4797
5501
|
code: string;
|
|
4798
|
-
provider: "
|
|
5502
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
4799
5503
|
id: string;
|
|
4800
5504
|
createdAt: number;
|
|
4801
5505
|
}>>]>>;
|
|
4802
5506
|
types: z.ZodArray<z.ZodObject<{
|
|
5507
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4803
5508
|
id: z.ZodString;
|
|
4804
5509
|
version: z.ZodString;
|
|
4805
5510
|
code: z.ZodString;
|
|
@@ -4844,6 +5549,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4844
5549
|
kind: z.ZodLiteral<"resource">;
|
|
4845
5550
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
4846
5551
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
5552
|
+
provider: z.ZodLiteral<"domino">;
|
|
5553
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
5554
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4847
5555
|
provider: z.ZodLiteral<"discord">;
|
|
4848
5556
|
resource: z.ZodLiteral<"channel">;
|
|
4849
5557
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -4972,8 +5680,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4972
5680
|
member: "member";
|
|
4973
5681
|
}>;
|
|
4974
5682
|
period: z.ZodEnum<{
|
|
4975
|
-
day: "day";
|
|
4976
5683
|
lifetime: "lifetime";
|
|
5684
|
+
day: "day";
|
|
4977
5685
|
}>;
|
|
4978
5686
|
limit: z.ZodNumber;
|
|
4979
5687
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -4982,16 +5690,17 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4982
5690
|
}, z.core.$strict>>>;
|
|
4983
5691
|
}, z.core.$strict>;
|
|
4984
5692
|
provider: z.ZodEnum<{
|
|
5693
|
+
"workers-ai": "workers-ai";
|
|
4985
5694
|
"fixture-pass": "fixture-pass";
|
|
4986
5695
|
"fixture-fail": "fixture-fail";
|
|
4987
5696
|
"fixture-unclear": "fixture-unclear";
|
|
4988
5697
|
"fixture-error": "fixture-error";
|
|
4989
|
-
"workers-ai": "workers-ai";
|
|
4990
5698
|
}>;
|
|
4991
5699
|
createdAt: z.ZodNumber;
|
|
4992
5700
|
}, z.core.$strip>>;
|
|
4993
5701
|
collections: z.ZodArray<z.ZodObject<{
|
|
4994
5702
|
id: z.ZodString;
|
|
5703
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4995
5704
|
title: z.ZodString;
|
|
4996
5705
|
quests: z.ZodArray<z.ZodString>;
|
|
4997
5706
|
}, z.core.$strict>>;
|
|
@@ -5006,6 +5715,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5006
5715
|
version: z.ZodString;
|
|
5007
5716
|
definition: z.ZodObject<{
|
|
5008
5717
|
id: z.ZodString;
|
|
5718
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5009
5719
|
title: z.ZodString;
|
|
5010
5720
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5011
5721
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -5107,6 +5817,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5107
5817
|
version: z.ZodString;
|
|
5108
5818
|
definition: z.ZodObject<{
|
|
5109
5819
|
id: z.ZodString;
|
|
5820
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5110
5821
|
title: z.ZodString;
|
|
5111
5822
|
balance: z.ZodString;
|
|
5112
5823
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -5381,6 +6092,7 @@ declare function createRelayClient(options: {
|
|
|
5381
6092
|
durationDays?: number | undefined;
|
|
5382
6093
|
maxPoints?: number | undefined;
|
|
5383
6094
|
}[];
|
|
6095
|
+
key?: string | undefined;
|
|
5384
6096
|
inviterGroup?: string | undefined;
|
|
5385
6097
|
}[]>;
|
|
5386
6098
|
summary: () => Promise<{
|
|
@@ -5480,6 +6192,7 @@ declare function createRelayClient(options: {
|
|
|
5480
6192
|
durationDays?: number | undefined;
|
|
5481
6193
|
maxPoints?: number | undefined;
|
|
5482
6194
|
}[];
|
|
6195
|
+
key?: string | undefined;
|
|
5483
6196
|
inviterGroup?: string | undefined;
|
|
5484
6197
|
};
|
|
5485
6198
|
qualified: number;
|
|
@@ -5556,6 +6269,7 @@ declare function createRelayClient(options: {
|
|
|
5556
6269
|
};
|
|
5557
6270
|
};
|
|
5558
6271
|
access: "participants" | "public";
|
|
6272
|
+
key?: string | undefined;
|
|
5559
6273
|
group?: string | undefined;
|
|
5560
6274
|
}[]>;
|
|
5561
6275
|
standings: (board: string, options?: LeaderboardQuery) => Promise<{
|
|
@@ -5724,6 +6438,7 @@ declare function createRelayClient(options: {
|
|
|
5724
6438
|
rewards: {
|
|
5725
6439
|
label: string;
|
|
5726
6440
|
}[];
|
|
6441
|
+
key?: string | undefined;
|
|
5727
6442
|
}>;
|
|
5728
6443
|
retry: (view: QuestView) => Promise<{
|
|
5729
6444
|
id: string;
|
|
@@ -5903,6 +6618,7 @@ declare function createRelayClient(options: {
|
|
|
5903
6618
|
rewards: {
|
|
5904
6619
|
label: string;
|
|
5905
6620
|
}[];
|
|
6621
|
+
key?: string | undefined;
|
|
5906
6622
|
}[];
|
|
5907
6623
|
collections: {
|
|
5908
6624
|
id: string;
|
|
@@ -6036,7 +6752,9 @@ declare function createRelayClient(options: {
|
|
|
6036
6752
|
rewards: {
|
|
6037
6753
|
label: string;
|
|
6038
6754
|
}[];
|
|
6755
|
+
key?: string | undefined;
|
|
6039
6756
|
}[];
|
|
6757
|
+
key?: string | undefined;
|
|
6040
6758
|
}[];
|
|
6041
6759
|
}>;
|
|
6042
6760
|
collection: (id: string) => Promise<{
|
|
@@ -6171,7 +6889,9 @@ declare function createRelayClient(options: {
|
|
|
6171
6889
|
rewards: {
|
|
6172
6890
|
label: string;
|
|
6173
6891
|
}[];
|
|
6892
|
+
key?: string | undefined;
|
|
6174
6893
|
}[];
|
|
6894
|
+
key?: string | undefined;
|
|
6175
6895
|
}>;
|
|
6176
6896
|
open: (view: QuestView) => Promise<QuestController>;
|
|
6177
6897
|
observe: (listener: (value: ProgressObservation<z.infer<typeof questExperienceSchema>>) => void, options?: {
|
|
@@ -6491,6 +7211,7 @@ declare function createRelayClient(options: {
|
|
|
6491
7211
|
release?: string | undefined;
|
|
6492
7212
|
} | undefined;
|
|
6493
7213
|
} | null;
|
|
7214
|
+
key?: string | undefined;
|
|
6494
7215
|
release?: string | undefined;
|
|
6495
7216
|
}[];
|
|
6496
7217
|
entitlements: ({
|
|
@@ -6770,6 +7491,9 @@ declare function createRelayClient(options: {
|
|
|
6770
7491
|
provider: "discord";
|
|
6771
7492
|
resource: "channel";
|
|
6772
7493
|
types: ("text" | "announcement")[];
|
|
7494
|
+
} | {
|
|
7495
|
+
provider: "domino";
|
|
7496
|
+
resource: "point-ledger";
|
|
6773
7497
|
} | {
|
|
6774
7498
|
provider: "discord";
|
|
6775
7499
|
resource: "role";
|
|
@@ -6878,7 +7602,7 @@ declare function createRelayClient(options: {
|
|
|
6878
7602
|
budgets: {
|
|
6879
7603
|
id: string;
|
|
6880
7604
|
scope: "project" | "member";
|
|
6881
|
-
period: "
|
|
7605
|
+
period: "lifetime" | "day";
|
|
6882
7606
|
limit: number;
|
|
6883
7607
|
cost: number | {
|
|
6884
7608
|
balance: string;
|
|
@@ -6930,6 +7654,9 @@ declare function createRelayClient(options: {
|
|
|
6930
7654
|
provider: "discord";
|
|
6931
7655
|
resource: "channel";
|
|
6932
7656
|
types: ("text" | "announcement")[];
|
|
7657
|
+
} | {
|
|
7658
|
+
provider: "domino";
|
|
7659
|
+
resource: "point-ledger";
|
|
6933
7660
|
} | {
|
|
6934
7661
|
provider: "discord";
|
|
6935
7662
|
resource: "role";
|
|
@@ -7038,7 +7765,7 @@ declare function createRelayClient(options: {
|
|
|
7038
7765
|
budgets: {
|
|
7039
7766
|
id: string;
|
|
7040
7767
|
scope: "project" | "member";
|
|
7041
|
-
period: "
|
|
7768
|
+
period: "lifetime" | "day";
|
|
7042
7769
|
limit: number;
|
|
7043
7770
|
cost: number | {
|
|
7044
7771
|
balance: string;
|
|
@@ -7089,6 +7816,9 @@ declare function createRelayClient(options: {
|
|
|
7089
7816
|
provider: "discord";
|
|
7090
7817
|
resource: "channel";
|
|
7091
7818
|
types: ("text" | "announcement")[];
|
|
7819
|
+
} | {
|
|
7820
|
+
provider: "domino";
|
|
7821
|
+
resource: "point-ledger";
|
|
7092
7822
|
} | {
|
|
7093
7823
|
provider: "discord";
|
|
7094
7824
|
resource: "role";
|
|
@@ -7197,18 +7927,19 @@ declare function createRelayClient(options: {
|
|
|
7197
7927
|
budgets: {
|
|
7198
7928
|
id: string;
|
|
7199
7929
|
scope: "project" | "member";
|
|
7200
|
-
period: "
|
|
7930
|
+
period: "lifetime" | "day";
|
|
7201
7931
|
limit: number;
|
|
7202
7932
|
cost: number | {
|
|
7203
7933
|
balance: string;
|
|
7204
7934
|
};
|
|
7205
7935
|
}[];
|
|
7206
7936
|
code: string;
|
|
7207
|
-
provider: "
|
|
7937
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
7208
7938
|
id: string;
|
|
7209
7939
|
createdAt: number;
|
|
7210
7940
|
legacy: boolean;
|
|
7211
7941
|
lifecycle: "active" | "paused" | "archived";
|
|
7942
|
+
key?: string | undefined;
|
|
7212
7943
|
origin?: {
|
|
7213
7944
|
typeVersion: string;
|
|
7214
7945
|
} | undefined;
|
|
@@ -7422,6 +8153,9 @@ declare function createRelayClient(options: {
|
|
|
7422
8153
|
provider: "discord";
|
|
7423
8154
|
resource: "channel";
|
|
7424
8155
|
types: ("text" | "announcement")[];
|
|
8156
|
+
} | {
|
|
8157
|
+
provider: "domino";
|
|
8158
|
+
resource: "point-ledger";
|
|
7425
8159
|
} | {
|
|
7426
8160
|
provider: "discord";
|
|
7427
8161
|
resource: "role";
|
|
@@ -7530,18 +8264,19 @@ declare function createRelayClient(options: {
|
|
|
7530
8264
|
budgets: {
|
|
7531
8265
|
id: string;
|
|
7532
8266
|
scope: "project" | "member";
|
|
7533
|
-
period: "
|
|
8267
|
+
period: "lifetime" | "day";
|
|
7534
8268
|
limit: number;
|
|
7535
8269
|
cost: number | {
|
|
7536
8270
|
balance: string;
|
|
7537
8271
|
};
|
|
7538
8272
|
}[];
|
|
7539
8273
|
code: string;
|
|
7540
|
-
provider: "
|
|
8274
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
7541
8275
|
id: string;
|
|
7542
8276
|
createdAt: number;
|
|
7543
8277
|
legacy: boolean;
|
|
7544
8278
|
lifecycle: "active" | "paused" | "archived";
|
|
8279
|
+
key?: string | undefined;
|
|
7545
8280
|
origin?: {
|
|
7546
8281
|
typeVersion: string;
|
|
7547
8282
|
} | undefined;
|
|
@@ -7609,6 +8344,9 @@ declare function createRelayClient(options: {
|
|
|
7609
8344
|
provider: "discord";
|
|
7610
8345
|
resource: "channel";
|
|
7611
8346
|
types: ("text" | "announcement")[];
|
|
8347
|
+
} | {
|
|
8348
|
+
provider: "domino";
|
|
8349
|
+
resource: "point-ledger";
|
|
7612
8350
|
} | {
|
|
7613
8351
|
provider: "discord";
|
|
7614
8352
|
resource: "role";
|
|
@@ -7717,18 +8455,19 @@ declare function createRelayClient(options: {
|
|
|
7717
8455
|
budgets: {
|
|
7718
8456
|
id: string;
|
|
7719
8457
|
scope: "project" | "member";
|
|
7720
|
-
period: "
|
|
8458
|
+
period: "lifetime" | "day";
|
|
7721
8459
|
limit: number;
|
|
7722
8460
|
cost: number | {
|
|
7723
8461
|
balance: string;
|
|
7724
8462
|
};
|
|
7725
8463
|
}[];
|
|
7726
8464
|
code: string;
|
|
7727
|
-
provider: "
|
|
8465
|
+
provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
|
|
7728
8466
|
id: string;
|
|
7729
8467
|
createdAt: number;
|
|
7730
8468
|
legacy: boolean;
|
|
7731
8469
|
lifecycle: "active" | "paused" | "archived";
|
|
8470
|
+
key?: string | undefined;
|
|
7732
8471
|
origin?: {
|
|
7733
8472
|
typeVersion: string;
|
|
7734
8473
|
} | undefined;
|
|
@@ -7879,6 +8618,7 @@ declare function createRelayClient(options: {
|
|
|
7879
8618
|
release?: string | undefined;
|
|
7880
8619
|
} | undefined;
|
|
7881
8620
|
} | null;
|
|
8621
|
+
key?: string | undefined;
|
|
7882
8622
|
release?: string | undefined;
|
|
7883
8623
|
}[];
|
|
7884
8624
|
entitlements: ({
|
|
@@ -8270,4 +9010,4 @@ declare function createRelayClient(options: {
|
|
|
8270
9010
|
}>;
|
|
8271
9011
|
};
|
|
8272
9012
|
|
|
8273
|
-
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, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema,
|
|
9013
|
+
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 };
|