@domino-sdk/relay 1.1.1 → 1.3.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 +37 -37
- package/dist/{browser-Cf1opQjX.d.ts → browser-D_3s8B5e.d.ts} +114 -114
- package/dist/browser.d.ts +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/server/index.d.ts +469 -6
- package/dist/server/index.js +233 -7
- package/package.json +1 -1
- package/dist/{activity-B8k9Sa_a.d.ts → activity-DeKJsRry.d.ts} +114 -114
package/dist/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as AccountRole, j as AppIdentityKind, A as Attempt, a as AttemptStatus, B as Bound, C as Condition, k as ContentBody, l as ContentMetricName, m as ContentPerformanceSnapshot, D as DataLeaves, n as Decision, E as Entitlement, o as EntitlementCorrection, p as EntitlementState, b as EvaluatorProgress, I as IdentityKind, K as KnownAttemptStatus, q as KnownIdentityKind, c as KnownTrackerSkipCode, r as MemberIdentity, s as MemberPage, M as MemberProgress, O as OpenIdentityKind, P as PhotoResult, t as PickupAvailability, u as PublishedRelease, v as QuestAvailability, Q as QuestBudgetView, w as QuestDescription, d as QuestPresentation, e as QuestProfile, x as QuestSettingsInput, f as QuizEvidence, y as ReleaseInput, z as ReviewPage, R as Reward, F as RoleOf, G as Snapshot, H as SourceRoles, S as SubmissionEvidence, g as SubmitInput, J as TextResult, L as TextReviewInput, N as TieredRewardDefinition, T as TieredRewardReference, U as Tracker, V as TrackerAccount, W as TrackerAttribution, X as TrackerBound, Y as TrackerCondition, Z as TrackerContent, _ as TrackerContentQuery, $ as TrackerData, a0 as TrackerDataIssue, a1 as TrackerDataSchema, a2 as TrackerDefinition, a3 as TrackerDefinitionResponse, a4 as TrackerOutcome, a5 as TrackerOutcomeQuery, a6 as TrackerPage, a7 as TrackerPreview, a8 as TrackerPreviewInput, a9 as TrackerQuery, aa as TrackerReadQuery, ab as TrackerReader, ac as TrackerRecord, h as TrackerSkipCode, ad as TrackerSource, ae as TrackerSourceKind, af as TrackerSourceResponse, ag as TrackerStatus, ah as TrackerTriggerContext, ai as TrackerTriggerMode, aj as TrackerTriggerPolicy, ak as TrackerWhere, al as TriggerEnrollment, am as TriggerHistorical, an as TriggerSince, ao as TypedTrackerRecord, ap as Where, aq as WhereSetting, ar as WithAccountRoles, as as WithContent, at as WithRecordData, au as XContentMetric, av as XTweet, aw as accountRoleSchema, ax as appIdentityKindSchema, ay as artifactSchema, az as attemptSchema, aA as batchReleaseSchema, aB as beginHandoverSchema, aC as beneficiaryRole, aD as completionRecordSchema, aE as configurePickupSchema, aF as confirmHandoverSchema, aG as contentMetricNameSchema, aH as contentPerformancePageSchema, aI as contentPerformanceQuerySchema, aJ as contentPerformanceSnapshotSchema, aK as createStockItemSchema, aL as customContentSchema, aM as customSourceSchema, aN as decisionSchema, aO as defaultTriggerMode, aP as deferPolicy, aQ as entitlementCorrectionSchema, aR as entitlementRecoverySchema, aS as entitlementSchema, aT as entitlementStateSchema, aU as errorSchema, aV as evaluatorProgressSchema, aW as evaluatorProtocol, aX as evaluatorProtocolSchema, aY as eventSchema, aZ as evidenceSchema, a_ as identityKindSchema, a$ as integrationRewardSchema, b0 as isAppIdentityKind, b1 as isKnownTrackerSource, b2 as knownIdentityKinds, b3 as mediaUrlSchema, b4 as memberIdentitySchema, b5 as memberListSchema, b6 as memberPageSchema, b7 as memberProgressSchema, b8 as openIdentityKindSchema, b9 as photoResultSchema, ba as pickupAllocationSchema, bb as pickupAvailabilitySchema, bc as pickupCatalogSchema, bd as pickupPolicySchema, be as pickupSelectionSchema, bf as pointsRewardSchema, bg as publishedReleaseSchema, bh as publishedTrackerSchema, bi as questAvailabilitySchema, bj as questBudgetViewSchema, bk as questDescriptionSchema, bl as questPresentationSchema, bm as questProfileSchema, bn as questSettingsInputSchema, bo as quizAnswersSchema, bp as quizEvidenceSchema, bq as releaseSchema, br as reservationSchema, bs as reviewItemSchema, bt as reviewListSchema, bu as reviewModeSchema, bv as reviewPageSchema, bw as rewardBundleSchema, bx as rewardKey, by as rewardSchema, bz as snapshotSchema, bA as sourceContent, bB as sourceIdentities, bC as staffDecisionSchema, bD as stockItemSchema, bE as stockSchema, bF as storedQuestDescriptionSchema, bG as storedReviewModeSchema, bH as submissionEvidenceSchema, bI as submitSchema, bJ as templateSchema, bK as textResultSchema, bL as textReviewInputSchema, bM as tierRewardSchema, bN as tieredRewardDefinitionSchema, bO as tieredRewardReferenceSchema, bP as trackerAccountSchema, bQ as trackerArtifactSchema, bR as trackerAttributionSchema, bS as trackerBoundSchema, bT as trackerConditionSchema, bU as trackerContentQuerySchema, bV as trackerContentReadSchema, bW as trackerContentSchema, bX as trackerContentStageSchema, bY as trackerControlSchema, bZ as trackerDataMaxBranches, b_ as trackerDataMaxEntries, b$ as trackerDataSchemaSchema, c0 as trackerDefinitionResponseSchema, c1 as trackerDefinitionSchema, c2 as trackerEvidenceSchema, c3 as trackerIngestResultSchema, c4 as trackerIngestSchema, c5 as trackerOutcomePageSchema, c6 as trackerOutcomeQuerySchema, c7 as trackerOutcomeRetrySchema, c8 as trackerOutcomeSchema, c9 as trackerPageSchema, ca as trackerPreviewInputSchema, cb as trackerPreviewLimits, cc as trackerPreviewSchema, cd as trackerQuerySchema, ce as trackerRecordAccountSchema, cf as trackerRecordInputSchema, cg as trackerRecordSchema, ch as trackerSkipCodes, ci as trackerSourceKinds, cj as trackerSourceResponseSchema, ck as trackerSourceSchema, cl as trackerStatusSchema, cm as trackerSummarySchema, cn as trackerTriggerContextSchema, co as trackerTriggerModeSchema, cp as trackerTriggerPolicySchema, cq as trackerTriggerRecordSchema, cr as trackerWhereSchema, cs as triggerAdmission, ct as triggerEnrollmentSchema, cu as triggerHistoricalSchema, cv as triggerMode, cw as triggerSchema, cx as triggerSinceSchema, cy as whereConditions, cz as whereSettings, cA as xAccountRoles, cB as xContentBodySchema, cC as xContentMetrics, cD as xSearchSourceSchema, cE as xTweetSchema } from './schema-DfJzH2ci.js';
|
|
2
2
|
export { A as AccountConnection, a as AuthProvider, D as DiscordMember, d as DiscordMessage, e as DiscordMessageData, f as DiscordMessageTextData, g as DiscordReactionData, h as DiscordReader, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence, i as accountConnectionSchema, j as authProviderSchema, k as balanceAtLeast, l as balancePrerequisiteSchema, m as completed, n as completionPrerequisiteSchema, o as discordMemberInputSchema, p as discordMemberSchema, q as discordMessageDataSchema, r as discordMessageInputSchema, s as discordMessageSchema, t as discordMessageTextDataSchema, u as discordMessagesSourceSchema, v as discordReactionDataSchema, w as discordReactionsSourceSchema, x as discordResourceSourceSchema, y as discordRewardSchema, z as groupPrerequisiteSchema, B as inGroup, C as missingPrerequisiteSchema, E as prerequisiteSchema, F as textEvidenceSchema, G as textOptionsSchema, H as urlEvidenceSchema, I as urlOptionsSchema, J as validateSubmissionValue, K as valueEvidenceSchema, L as xPostId } from './submission-input-BZkm6ohU.js';
|
|
3
3
|
export { E as ExchangeInput, M as MemberSummary, P as Page, a as PageQuery, b as ParticipantActivity, c as ParticipantPrincipal, d as ParticipantSession, R as RelayEvent, S as Session, e as authScopeSchema, f as exchangeResultSchema, g as exchangeSchema, k as knownRelayEventSchema, m as memberSummarySchema, p as pageCursorSchema, h as pageQuerySchema, i as participantActivityQuerySchema, j as participantActivitySchema, l as participantPrincipalSchema, n as participantSessionSchema, o as principalSchema, r as relayEventSchema, s as sessionMember, q as sessionSchema } from './pages-BBYD21IE.js';
|
|
4
|
-
export { C as CalendarPeriod, D as DeploymentPreview, a as DeploymentRecord, P as ProjectCalendar, b as ProjectCalendarInput, c as activityTypeSchema, d as activityTypes, e as calendarPeriodSchema, f as canonicalTimeZone, g as deploymentPreviewSchema, h as deploymentRecordSchema, i as deploymentResultSchema, j as deploymentSourceSchema, p as projectCalendarDeclarationSchema, k as projectCalendarInputSchema, l as projectCalendarSchema, m as projectCatalogArtifactSchema, n as projectDeploymentSchema, o as promoteDeploymentSchema, q as publishDeploymentSchema, r as refuseStreakTimeZone, s as refuseWindowTimeZone, t as rejectDeploymentSchema, u as rollbackDeploymentSchema, v as submitDeploymentSchema, w as timeZoneNameSchema, x as timeZoneSchema } from './activity-
|
|
4
|
+
export { C as CalendarPeriod, D as DeploymentPreview, a as DeploymentRecord, P as ProjectCalendar, b as ProjectCalendarInput, c as activityTypeSchema, d as activityTypes, e as calendarPeriodSchema, f as canonicalTimeZone, g as deploymentPreviewSchema, h as deploymentRecordSchema, i as deploymentResultSchema, j as deploymentSourceSchema, p as projectCalendarDeclarationSchema, k as projectCalendarInputSchema, l as projectCalendarSchema, m as projectCatalogArtifactSchema, n as projectDeploymentSchema, o as promoteDeploymentSchema, q as publishDeploymentSchema, r as refuseStreakTimeZone, s as refuseWindowTimeZone, t as rejectDeploymentSchema, u as rollbackDeploymentSchema, v as submitDeploymentSchema, w as timeZoneNameSchema, x as timeZoneSchema } from './activity-DeKJsRry.js';
|
|
5
5
|
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, E as EngagementBudget, q as EngagementDefinition, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, r as LeaderboardSettlement, s as LeaderboardSettlementPolicy, t as LeaderboardSettlementSummary, u as ManagedPointLedger, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, v as PointLedger, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition, w as availabilityWindowSchema, x as campaignDefinitionSchema, y as campaignEnrollmentInputSchema, z as campaignEnrollmentSchema, B as campaignViewSchema, D as campaignWithdrawalInputSchema, F as createPointLedgerSchema, G as defineCampaign, H as defineGroup, I as engagementArtifactSchema, J as engagementBoundaryPageSchema, N as engagementBudgetSchema, O as engagementChangePreviewInputSchema, Q as engagementChangePreviewSchema, S as engagementChangeSchema, T as engagementDefinitionSchema, U as engagementDeploymentEntrySchema, V as engagementPageQuerySchema, W as engagementPageSchema, X as engagementPublishSchema, Y as engagementRuleSchema, Z as engagementScoreInputSchema, _ as engagementScoreSchema, $ as engagementSettlementSchema, a0 as engagementVersionPageSchema, a1 as engagementVersionQuerySchema, a2 as leaderboardArtifactSchema, a3 as leaderboardAuthoringSchema, a4 as leaderboardDefinitionSchema, a5 as leaderboardExclusionSchema, a6 as leaderboardGroupSchema, a7 as leaderboardPageSchema, a8 as leaderboardPlacementSchema, a9 as leaderboardPreviewSchema, aa as leaderboardPrizeRewardSchema, ab as leaderboardPrizeSchema, ac as leaderboardQuerySchema, ad as leaderboardRowSchema, ae as leaderboardSettlementApprovalSchema, af as leaderboardSettlementPolicySchema, ag as leaderboardSettlementRowSchema, ah as leaderboardSettlementSchema, ai as leaderboardSettlementStatusSchema, aj as leaderboardSettlementSummarySchema, ak as leaderboardWindowSchema, al as managedPointLedgerSchema, am as memberCampaignEnrollmentInputSchema, an as memberCampaignWithdrawalInputSchema, ao as pointBalanceSchema, ap as pointBalancesSchema, aq as pointEntrySchema, ar as pointHistoryPageSchema, as as pointHistoryQuerySchema, at as pointLedgerArtifactSchema, au as pointLedgerDeclarationSchema, av as pointLedgerPropertiesSchema, aw as pointLedgerReferenceSchema, ax as pointLedgerSchema, ay as pointsAccountSchema, az as pointsEntrySchema, aA as pointsMutationSchema, aB as pointsResultSchema, aC as projectGroupKey, aD as projectGroupSchema, aE as publishedLeaderboardSchema, aF as publishedReferralSchema, aG as referralAcceptSchema, aH as referralAccountSchema, aI as referralArtifactSchema, aJ as referralAuthoringSchema, aK as referralControlSchema, aL as referralDefinitionSchema, aM as referralHistorySchema, aN as referralManagementSchema, aO as referralRelationshipSchema, aP as referralSummarySchema } from './groups-Ck-OxzjD.js';
|
|
6
6
|
export { C as ContentMetric, j as ContentPerformancePolicy, M as MemberEnrollmentInput, k as QuestCatalog, Q as QuestClaimInput, l as QuestDraft, a as QuestEnrollment, b as QuestEnrollmentInput, m as QuestInstance, c as QuestInteraction, d as QuestOutcome, e as QuestOutcomePage, f as QuestOutcomeQuery, g as QuestOutcomeState, h as QuestRewardView, i as QuestView, R as RewardDelivery, n as RewardDeliveryAction, o as allocateQuestSchema, p as allocatedQuestSchema, q as catalogDeploymentPreviewSchema, r as catalogDeploymentSchema, s as collectionSlotDeclarationSchema, t as collectionSlotSchema, u as collectionViewSchema, v as contentMetricSchema, w as contentMetricsSchema, x as contentPerformancePolicySchema, y as contentQualificationDecisionSchema, z as contentQualificationPageSchema, A as contentQualificationQuerySchema, B as contentQualificationSchema, D as interactionSchema, E as knownRewardDeliverySchema, F as memberEnrollmentInputSchema, G as publishQuestDraftSchema, H as questCatalogSchema, I as questClaimInputSchema, J as questCollectionSchema, K as questDraftChangesSchema, L as questDraftSchema, N as questEnrollmentInputSchema, O as questEnrollmentSchema, P as questExperienceSchema, S as questInstanceSchema, T as questInteraction, U as questOutcomePageSchema, V as questOutcomeQuerySchema, W as questOutcomeSchema, X as questPublicationPreviewSchema, Y as questRewardViewSchema, Z as questTypeVersionSchema, _ as questViewSchema, $ as rewardDeliveriesSchema, a0 as rewardDeliverySchema, a1 as roleReconciliationSchema, a2 as saveQuestDraftSchema } from './outcomes-kVB-Juzs.js';
|
|
7
7
|
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress, f as automaticCatchUpConfirmSchema, g as automaticCatchUpInputSchema, h as automaticCatchUpPreviewSchema, i as automaticCatchUpResultSchema, j as automaticEventSchema, k as automaticOutcomePageSchema, l as automaticOutcomeQuerySchema, m as automaticOutcomeSchema, n as automaticSchedulingPageSchema, o as automaticSchedulingQuerySchema, p as automaticSchedulingRetrySchema, q as automaticSchedulingSchema, r as collectionBeginSchema, s as collectionCodeSchema, t as collectionPassSchema, u as collectionPreviewSchema, v as collectionResolveSchema, w as counterAchievementSchema, x as counterContributionSchema, y as counterGoalSchema, z as counterHistoryQuerySchema, B as counterHistorySchema, D as counterModerationResultSchema, E as counterModerationSchema, F as counterPolicySchema, G as counterProgressSchema, H as counterWindowSchema } from './automatic-outcomes-B1xrETxm.js';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as contentQualificationQuerySchema, r as catalogDeploymentSchema, a2 as saveQuestDraftSchema, G as publishQuestDraftSchema, n as RewardDeliveryAction, F as memberEnrollmentInputSchema, o as allocateQuestSchema } from '../outcomes-kVB-Juzs.js';
|
|
2
|
-
import { O as OpenIdentityKind, a1 as TrackerDataSchema, a9 as TrackerQuery, bV as trackerContentReadSchema, bY as trackerControlSchema, c4 as trackerIngestSchema, a5 as TrackerOutcomeQuery, c7 as trackerOutcomeRetrySchema, a8 as TrackerPreviewInput, aI as contentPerformanceQuerySchema,
|
|
2
|
+
import { a as AttemptStatus, O as OpenIdentityKind, a1 as TrackerDataSchema, a9 as TrackerQuery, bV as trackerContentReadSchema, bY as trackerControlSchema, c4 as trackerIngestSchema, a5 as TrackerOutcomeQuery, c7 as trackerOutcomeRetrySchema, a8 as TrackerPreviewInput, aI as contentPerformanceQuerySchema, aE as configurePickupSchema, bn as questSettingsInputSchema, bI as submitSchema, bC as staffDecisionSchema, aB as beginHandoverSchema, aF as confirmHandoverSchema, aQ as entitlementCorrectionSchema, aK as createStockItemSchema } from '../schema-DfJzH2ci.js';
|
|
3
3
|
export { aS as entitlementSchema, b4 as memberIdentitySchema } from '../schema-DfJzH2ci.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { r as collectionBeginSchema, z as counterHistoryQuerySchema, E as counterModerationSchema, o as automaticSchedulingQuerySchema, p as automaticSchedulingRetrySchema, l as automaticOutcomeQuerySchema, g as automaticCatchUpInputSchema, f as automaticCatchUpConfirmSchema } from '../automatic-outcomes-B1xrETxm.js';
|
|
6
|
-
import { n as projectDeploymentSchema, q as publishDeploymentSchema, v as submitDeploymentSchema, t as rejectDeploymentSchema, o as promoteDeploymentSchema, u as rollbackDeploymentSchema, k as projectCalendarInputSchema } from '../activity-
|
|
7
|
-
export { c as activityTypeSchema, d as activityTypes } from '../activity-
|
|
6
|
+
import { n as projectDeploymentSchema, q as publishDeploymentSchema, v as submitDeploymentSchema, t as rejectDeploymentSchema, o as promoteDeploymentSchema, u as rollbackDeploymentSchema, k as projectCalendarInputSchema } from '../activity-DeKJsRry.js';
|
|
7
|
+
export { c as activityTypeSchema, d as activityTypes } from '../activity-DeKJsRry.js';
|
|
8
8
|
import { O as engagementChangePreviewInputSchema, S as engagementChangeSchema, a1 as engagementVersionQuerySchema, V as engagementPageQuerySchema, X as engagementPublishSchema, ax as pointLedgerSchema, aA as pointsMutationSchema, aK as referralControlSchema, ac as leaderboardQuerySchema, a5 as leaderboardExclusionSchema, p as ProjectGroupReference, a6 as leaderboardGroupSchema, am as memberCampaignEnrollmentInputSchema, an as memberCampaignWithdrawalInputSchema, F as createPointLedgerSchema, ae as leaderboardSettlementApprovalSchema } from '../groups-Ck-OxzjD.js';
|
|
9
9
|
import { h as offerControlSchema, m as redemptionCancellationSchema } from '../offers-Cy-e4o5x.js';
|
|
10
10
|
import { C as profileSettingsInputSchema, z as profileModerationSchema } from '../profiles-D2aFcOxu.js';
|
|
@@ -54,6 +54,88 @@ type TestMemberCreateInput = z.input<typeof testMemberCreateSchema>;
|
|
|
54
54
|
type TestMemberActionInput = z.input<typeof testMemberActionSchema>;
|
|
55
55
|
type TestMemberResetInput = z.input<typeof testMemberResetSchema>;
|
|
56
56
|
type TestMemberResetResult = z.infer<typeof testMemberResetResultSchema>;
|
|
57
|
+
declare const testMemberHistoryQuerySchema: z.ZodObject<{
|
|
58
|
+
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const testMemberHistorySchema: z.ZodObject<{
|
|
61
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
release: z.ZodString;
|
|
64
|
+
quest: z.ZodString;
|
|
65
|
+
member: z.ZodString;
|
|
66
|
+
evidence: z.ZodNullable<z.ZodString>;
|
|
67
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"quiz">;
|
|
69
|
+
release: z.ZodOptional<z.ZodString>;
|
|
70
|
+
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
71
|
+
[k: string]: string;
|
|
72
|
+
}, Record<string, string>>>;
|
|
73
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
74
|
+
kind: z.ZodLiteral<"text">;
|
|
75
|
+
value: z.ZodString;
|
|
76
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"url">;
|
|
78
|
+
value: z.ZodString;
|
|
79
|
+
}, z.core.$strict>]>>;
|
|
80
|
+
status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
|
|
81
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
82
|
+
retries: z.ZodNumber;
|
|
83
|
+
generation: z.ZodNumber;
|
|
84
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
85
|
+
reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
86
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
87
|
+
balance: z.ZodString;
|
|
88
|
+
amount: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"tier">;
|
|
91
|
+
reward: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
title: z.ZodString;
|
|
94
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
inventory: z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"untracked">;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
+
kind: z.ZodLiteral<"automatic">;
|
|
105
|
+
}, z.core.$strict>], "kind">;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
tier: z.ZodString;
|
|
108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
109
|
+
kind: z.ZodLiteral<"integration">;
|
|
110
|
+
provider: z.ZodLiteral<"discord">;
|
|
111
|
+
action: z.ZodLiteral<"grant-role">;
|
|
112
|
+
roleId: z.ZodString;
|
|
113
|
+
}, z.core.$strict>]>>>>;
|
|
114
|
+
evaluationRun: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
deferCount: z.ZodDefault<z.ZodNumber>;
|
|
116
|
+
deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
117
|
+
nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
118
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
current: z.ZodNumber;
|
|
121
|
+
target: z.ZodNumber;
|
|
122
|
+
reason: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
124
|
+
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
createdAt: z.ZodNumber;
|
|
126
|
+
eligibleAt: z.ZodNumber;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
129
|
+
quest: z.ZodString;
|
|
130
|
+
tracker: z.ZodString;
|
|
131
|
+
record: z.ZodString;
|
|
132
|
+
code: z.ZodString;
|
|
133
|
+
occurredAt: z.ZodNumber;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
complete: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type TestMemberHistoryQuery = z.output<typeof testMemberHistoryQuerySchema>;
|
|
138
|
+
type TestMemberHistory = z.infer<typeof testMemberHistorySchema>;
|
|
57
139
|
|
|
58
140
|
declare const webhookEventSchema: z.ZodObject<{
|
|
59
141
|
id: z.ZodString;
|
|
@@ -369,6 +451,11 @@ declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
|
|
|
369
451
|
}>>;
|
|
370
452
|
/** Most app secrets a project environment can hold. */
|
|
371
453
|
declare const APP_SECRET_LIMIT = 50;
|
|
454
|
+
declare const APP_KV_LIMIT = 5;
|
|
455
|
+
declare const APP_SQL_LIMIT = 5;
|
|
456
|
+
declare const APP_MIGRATION_LIMIT = 100;
|
|
457
|
+
declare const APP_MIGRATION_FILE_BYTES = 90000;
|
|
458
|
+
declare const APP_MIGRATION_TOTAL_BYTES = 1000000;
|
|
372
459
|
/**
|
|
373
460
|
* An app secret's name: the Worker binding it becomes. `DOMINO_` names and `ASSETS` are the
|
|
374
461
|
* platform's own bindings.
|
|
@@ -423,6 +510,84 @@ declare const hostedAppSecretsSchema: z.ZodObject<{
|
|
|
423
510
|
secrets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
424
511
|
}, z.core.$strict>;
|
|
425
512
|
type HostedAppSecrets = z.infer<typeof hostedAppSecretsSchema>;
|
|
513
|
+
declare const appStorageSchema: z.ZodObject<{
|
|
514
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
515
|
+
description: z.ZodString;
|
|
516
|
+
}, z.core.$strict>>>;
|
|
517
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
518
|
+
description: z.ZodString;
|
|
519
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
520
|
+
}, z.core.$strict>>>;
|
|
521
|
+
}, z.core.$strict>;
|
|
522
|
+
type AppStorage = z.infer<typeof appStorageSchema>;
|
|
523
|
+
declare const appStorageKindSchema: z.ZodEnum<{
|
|
524
|
+
kv: "kv";
|
|
525
|
+
sql: "sql";
|
|
526
|
+
}>;
|
|
527
|
+
type AppStorageKind = z.infer<typeof appStorageKindSchema>;
|
|
528
|
+
declare const appStorageListSchema: z.ZodObject<{
|
|
529
|
+
stores: z.ZodArray<z.ZodObject<{
|
|
530
|
+
kind: z.ZodString;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
533
|
+
declared: z.ZodBoolean;
|
|
534
|
+
description: z.ZodOptional<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
type AppStorageList = z.infer<typeof appStorageListSchema>;
|
|
538
|
+
/** Rows per page when browsing a SQL store's table. */
|
|
539
|
+
declare const APP_STORAGE_ROW_LIMIT = 50;
|
|
540
|
+
/** Longest text a browsed cell or KV value shows; longer values end in `truncated`. */
|
|
541
|
+
declare const APP_STORAGE_PREVIEW_CHARACTERS = 2000;
|
|
542
|
+
/**
|
|
543
|
+
* A browsed SQL value. Text longer than the preview is cut and flagged; a BLOB shows only its
|
|
544
|
+
* size in bytes.
|
|
545
|
+
*/
|
|
546
|
+
declare const appStorageCellSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
|
|
547
|
+
text: z.ZodString;
|
|
548
|
+
truncated: z.ZodLiteral<true>;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
blob: z.ZodNumber;
|
|
551
|
+
}, z.core.$strip>]>;
|
|
552
|
+
type AppStorageCell = z.infer<typeof appStorageCellSchema>;
|
|
553
|
+
declare const appStorageTablesSchema: z.ZodObject<{
|
|
554
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
555
|
+
name: z.ZodString;
|
|
556
|
+
kind: z.ZodString;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
}, z.core.$strip>;
|
|
559
|
+
type AppStorageTables = z.infer<typeof appStorageTablesSchema>;
|
|
560
|
+
declare const appStorageRowsSchema: z.ZodObject<{
|
|
561
|
+
table: z.ZodString;
|
|
562
|
+
columns: z.ZodArray<z.ZodString>;
|
|
563
|
+
rows: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
|
|
564
|
+
text: z.ZodString;
|
|
565
|
+
truncated: z.ZodLiteral<true>;
|
|
566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
+
blob: z.ZodNumber;
|
|
568
|
+
}, z.core.$strip>]>>>;
|
|
569
|
+
offset: z.ZodNumber;
|
|
570
|
+
total: z.ZodNumber;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
type AppStorageRows = z.infer<typeof appStorageRowsSchema>;
|
|
573
|
+
declare const appStorageKeysSchema: z.ZodObject<{
|
|
574
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
575
|
+
name: z.ZodString;
|
|
576
|
+
expiration: z.ZodNullable<z.ZodNumber>;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
type AppStorageKeys = z.infer<typeof appStorageKeysSchema>;
|
|
581
|
+
declare const appStorageValueSchema: z.ZodObject<{
|
|
582
|
+
key: z.ZodString;
|
|
583
|
+
size: z.ZodNumber;
|
|
584
|
+
text: z.ZodNullable<z.ZodString>;
|
|
585
|
+
truncated: z.ZodBoolean;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
type AppStorageValue = z.infer<typeof appStorageValueSchema>;
|
|
588
|
+
declare const appMigrationNameSchema: z.ZodString;
|
|
589
|
+
/** Wrangler compares the leading number first, then the filename (workers-sdk d1/migrations/helpers.ts). */
|
|
590
|
+
declare function compareAppMigrations(a: string, b: string): number;
|
|
426
591
|
declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
427
592
|
routing: z.ZodDefault<z.ZodEnum<{
|
|
428
593
|
legacy: "legacy";
|
|
@@ -443,6 +608,15 @@ declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
443
608
|
description: z.ZodString;
|
|
444
609
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
445
610
|
}, z.core.$strict>>>;
|
|
611
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
613
|
+
description: z.ZodString;
|
|
614
|
+
}, z.core.$strict>>>;
|
|
615
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
616
|
+
description: z.ZodString;
|
|
617
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strict>>>;
|
|
619
|
+
}, z.core.$strict>>;
|
|
446
620
|
routing: z.ZodDefault<z.ZodEnum<{
|
|
447
621
|
legacy: "legacy";
|
|
448
622
|
transparent: "transparent";
|
|
@@ -802,6 +976,10 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
802
976
|
transparent: "transparent";
|
|
803
977
|
}>>;
|
|
804
978
|
worker: z.ZodOptional<z.ZodObject<{
|
|
979
|
+
migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
980
|
+
name: z.ZodString;
|
|
981
|
+
sql: z.ZodString;
|
|
982
|
+
}, z.core.$strict>>>>;
|
|
805
983
|
modules: z.ZodArray<z.ZodObject<{
|
|
806
984
|
path: z.ZodString;
|
|
807
985
|
type: z.ZodEnum<{
|
|
@@ -821,6 +999,15 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
821
999
|
description: z.ZodString;
|
|
822
1000
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
823
1001
|
}, z.core.$strict>>>;
|
|
1002
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
1003
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1004
|
+
description: z.ZodString;
|
|
1005
|
+
}, z.core.$strict>>>;
|
|
1006
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1007
|
+
description: z.ZodString;
|
|
1008
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
}, z.core.$strict>>>;
|
|
1010
|
+
}, z.core.$strict>>;
|
|
824
1011
|
}, z.core.$strict>>;
|
|
825
1012
|
assets: z.ZodArray<z.ZodObject<{
|
|
826
1013
|
path: z.ZodString;
|
|
@@ -846,6 +1033,10 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
846
1033
|
transparent: "transparent";
|
|
847
1034
|
}>>;
|
|
848
1035
|
worker: z.ZodOptional<z.ZodObject<{
|
|
1036
|
+
migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1037
|
+
name: z.ZodString;
|
|
1038
|
+
sql: z.ZodString;
|
|
1039
|
+
}, z.core.$strict>>>>;
|
|
849
1040
|
modules: z.ZodArray<z.ZodObject<{
|
|
850
1041
|
path: z.ZodString;
|
|
851
1042
|
type: z.ZodEnum<{
|
|
@@ -865,6 +1056,15 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
865
1056
|
description: z.ZodString;
|
|
866
1057
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
867
1058
|
}, z.core.$strict>>>;
|
|
1059
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1061
|
+
description: z.ZodString;
|
|
1062
|
+
}, z.core.$strict>>>;
|
|
1063
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1064
|
+
description: z.ZodString;
|
|
1065
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
}, z.core.$strict>>>;
|
|
1067
|
+
}, z.core.$strict>>;
|
|
868
1068
|
}, z.core.$strict>>;
|
|
869
1069
|
assets: z.ZodArray<z.ZodObject<{
|
|
870
1070
|
path: z.ZodString;
|
|
@@ -37868,6 +38068,83 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
37868
38068
|
name: string;
|
|
37869
38069
|
test: true;
|
|
37870
38070
|
}[]>;
|
|
38071
|
+
history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
|
|
38072
|
+
attempts: {
|
|
38073
|
+
id: string;
|
|
38074
|
+
release: string;
|
|
38075
|
+
quest: string;
|
|
38076
|
+
member: string;
|
|
38077
|
+
evidence: string | null;
|
|
38078
|
+
status: AttemptStatus;
|
|
38079
|
+
reason: string | null;
|
|
38080
|
+
retries: number;
|
|
38081
|
+
generation: number;
|
|
38082
|
+
completion: string | null;
|
|
38083
|
+
reviewRewards: ({
|
|
38084
|
+
kind: "tier";
|
|
38085
|
+
reward: {
|
|
38086
|
+
id: string;
|
|
38087
|
+
title: string;
|
|
38088
|
+
tiers: {
|
|
38089
|
+
id: string;
|
|
38090
|
+
title: string;
|
|
38091
|
+
}[];
|
|
38092
|
+
inventory: {
|
|
38093
|
+
kind: "untracked";
|
|
38094
|
+
};
|
|
38095
|
+
fulfillment: {
|
|
38096
|
+
kind: "staff-handover";
|
|
38097
|
+
} | {
|
|
38098
|
+
kind: "automatic";
|
|
38099
|
+
};
|
|
38100
|
+
};
|
|
38101
|
+
tier: string;
|
|
38102
|
+
} | {
|
|
38103
|
+
kind: "points";
|
|
38104
|
+
balance: string;
|
|
38105
|
+
amount: number;
|
|
38106
|
+
} | {
|
|
38107
|
+
kind: "integration";
|
|
38108
|
+
provider: "discord";
|
|
38109
|
+
action: "grant-role";
|
|
38110
|
+
roleId: string;
|
|
38111
|
+
})[] | null;
|
|
38112
|
+
evaluationRun: number;
|
|
38113
|
+
deferCount: number;
|
|
38114
|
+
deferUntil: number | null;
|
|
38115
|
+
nextEvaluationAt: number | null;
|
|
38116
|
+
code: string | null;
|
|
38117
|
+
progress: {
|
|
38118
|
+
current: number;
|
|
38119
|
+
target: number;
|
|
38120
|
+
reason: string;
|
|
38121
|
+
} | null;
|
|
38122
|
+
requestedReview: boolean;
|
|
38123
|
+
createdAt: number;
|
|
38124
|
+
eligibleAt: number;
|
|
38125
|
+
input?: {
|
|
38126
|
+
kind: "quiz";
|
|
38127
|
+
answers: {
|
|
38128
|
+
[k: string]: string;
|
|
38129
|
+
};
|
|
38130
|
+
release?: string | undefined;
|
|
38131
|
+
} | {
|
|
38132
|
+
kind: "text";
|
|
38133
|
+
value: string;
|
|
38134
|
+
} | {
|
|
38135
|
+
kind: "url";
|
|
38136
|
+
value: string;
|
|
38137
|
+
} | undefined;
|
|
38138
|
+
}[];
|
|
38139
|
+
skipped: {
|
|
38140
|
+
quest: string;
|
|
38141
|
+
tracker: string;
|
|
38142
|
+
record: string;
|
|
38143
|
+
code: string;
|
|
38144
|
+
occurredAt: number;
|
|
38145
|
+
}[];
|
|
38146
|
+
complete: boolean;
|
|
38147
|
+
}>;
|
|
37871
38148
|
act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
|
|
37872
38149
|
id: string;
|
|
37873
38150
|
release: string;
|
|
@@ -39248,6 +39525,54 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
39248
39525
|
}>;
|
|
39249
39526
|
delete: (name: string, call?: ManagementCallOptions) => Promise<void>;
|
|
39250
39527
|
};
|
|
39528
|
+
storage: {
|
|
39529
|
+
list: (call?: ManagementCallOptions) => Promise<{
|
|
39530
|
+
stores: {
|
|
39531
|
+
kind: string;
|
|
39532
|
+
name: string;
|
|
39533
|
+
createdAt: number | null;
|
|
39534
|
+
declared: boolean;
|
|
39535
|
+
description?: string | undefined;
|
|
39536
|
+
}[];
|
|
39537
|
+
}>;
|
|
39538
|
+
tables: (name: string, call?: ManagementCallOptions) => Promise<{
|
|
39539
|
+
tables: {
|
|
39540
|
+
name: string;
|
|
39541
|
+
kind: string;
|
|
39542
|
+
}[];
|
|
39543
|
+
}>;
|
|
39544
|
+
rows: (name: string, table: string, options?: {
|
|
39545
|
+
offset?: number;
|
|
39546
|
+
}, call?: ManagementCallOptions) => Promise<{
|
|
39547
|
+
table: string;
|
|
39548
|
+
columns: string[];
|
|
39549
|
+
rows: (string | number | {
|
|
39550
|
+
text: string;
|
|
39551
|
+
truncated: true;
|
|
39552
|
+
} | {
|
|
39553
|
+
blob: number;
|
|
39554
|
+
} | null)[][];
|
|
39555
|
+
offset: number;
|
|
39556
|
+
total: number;
|
|
39557
|
+
}>;
|
|
39558
|
+
keys: (name: string, options?: {
|
|
39559
|
+
prefix?: string;
|
|
39560
|
+
cursor?: string;
|
|
39561
|
+
}, call?: ManagementCallOptions) => Promise<{
|
|
39562
|
+
keys: {
|
|
39563
|
+
name: string;
|
|
39564
|
+
expiration: number | null;
|
|
39565
|
+
}[];
|
|
39566
|
+
cursor: string | null;
|
|
39567
|
+
}>;
|
|
39568
|
+
value: (name: string, key: string, call?: ManagementCallOptions) => Promise<{
|
|
39569
|
+
key: string;
|
|
39570
|
+
size: number;
|
|
39571
|
+
text: string | null;
|
|
39572
|
+
truncated: boolean;
|
|
39573
|
+
}>;
|
|
39574
|
+
delete: (kind: AppStorageKind, name: string, call?: ManagementCallOptions) => Promise<void>;
|
|
39575
|
+
};
|
|
39251
39576
|
walletBalanceChains: (call?: ManagementCallOptions) => Promise<{
|
|
39252
39577
|
chains: {
|
|
39253
39578
|
chain: `cosmos:${string}` | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | `eip155:${number}`;
|
|
@@ -42712,8 +43037,11 @@ type ManagementClientOptions = {
|
|
|
42712
43037
|
type ManagementRawInit = RequestInit & {
|
|
42713
43038
|
timeout?: number;
|
|
42714
43039
|
};
|
|
42715
|
-
type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers"> & {
|
|
42716
|
-
testMembers?: ReturnType<typeof createManagementClient>["testMembers"]
|
|
43040
|
+
type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage"> & {
|
|
43041
|
+
testMembers?: Omit<ReturnType<typeof createManagementClient>["testMembers"], "history"> & {
|
|
43042
|
+
history?: ReturnType<typeof createManagementClient>["testMembers"]["history"];
|
|
43043
|
+
};
|
|
43044
|
+
storage?: ReturnType<typeof createManagementClient>["storage"];
|
|
42717
43045
|
};
|
|
42718
43046
|
declare function createManagementClient(options: ManagementClientOptions): {
|
|
42719
43047
|
raw: (path: string, init?: ManagementRawInit) => Promise<Response>;
|
|
@@ -79580,6 +79908,83 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
79580
79908
|
name: string;
|
|
79581
79909
|
test: true;
|
|
79582
79910
|
}[]>;
|
|
79911
|
+
history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
|
|
79912
|
+
attempts: {
|
|
79913
|
+
id: string;
|
|
79914
|
+
release: string;
|
|
79915
|
+
quest: string;
|
|
79916
|
+
member: string;
|
|
79917
|
+
evidence: string | null;
|
|
79918
|
+
status: AttemptStatus;
|
|
79919
|
+
reason: string | null;
|
|
79920
|
+
retries: number;
|
|
79921
|
+
generation: number;
|
|
79922
|
+
completion: string | null;
|
|
79923
|
+
reviewRewards: ({
|
|
79924
|
+
kind: "tier";
|
|
79925
|
+
reward: {
|
|
79926
|
+
id: string;
|
|
79927
|
+
title: string;
|
|
79928
|
+
tiers: {
|
|
79929
|
+
id: string;
|
|
79930
|
+
title: string;
|
|
79931
|
+
}[];
|
|
79932
|
+
inventory: {
|
|
79933
|
+
kind: "untracked";
|
|
79934
|
+
};
|
|
79935
|
+
fulfillment: {
|
|
79936
|
+
kind: "staff-handover";
|
|
79937
|
+
} | {
|
|
79938
|
+
kind: "automatic";
|
|
79939
|
+
};
|
|
79940
|
+
};
|
|
79941
|
+
tier: string;
|
|
79942
|
+
} | {
|
|
79943
|
+
kind: "points";
|
|
79944
|
+
balance: string;
|
|
79945
|
+
amount: number;
|
|
79946
|
+
} | {
|
|
79947
|
+
kind: "integration";
|
|
79948
|
+
provider: "discord";
|
|
79949
|
+
action: "grant-role";
|
|
79950
|
+
roleId: string;
|
|
79951
|
+
})[] | null;
|
|
79952
|
+
evaluationRun: number;
|
|
79953
|
+
deferCount: number;
|
|
79954
|
+
deferUntil: number | null;
|
|
79955
|
+
nextEvaluationAt: number | null;
|
|
79956
|
+
code: string | null;
|
|
79957
|
+
progress: {
|
|
79958
|
+
current: number;
|
|
79959
|
+
target: number;
|
|
79960
|
+
reason: string;
|
|
79961
|
+
} | null;
|
|
79962
|
+
requestedReview: boolean;
|
|
79963
|
+
createdAt: number;
|
|
79964
|
+
eligibleAt: number;
|
|
79965
|
+
input?: {
|
|
79966
|
+
kind: "quiz";
|
|
79967
|
+
answers: {
|
|
79968
|
+
[k: string]: string;
|
|
79969
|
+
};
|
|
79970
|
+
release?: string | undefined;
|
|
79971
|
+
} | {
|
|
79972
|
+
kind: "text";
|
|
79973
|
+
value: string;
|
|
79974
|
+
} | {
|
|
79975
|
+
kind: "url";
|
|
79976
|
+
value: string;
|
|
79977
|
+
} | undefined;
|
|
79978
|
+
}[];
|
|
79979
|
+
skipped: {
|
|
79980
|
+
quest: string;
|
|
79981
|
+
tracker: string;
|
|
79982
|
+
record: string;
|
|
79983
|
+
code: string;
|
|
79984
|
+
occurredAt: number;
|
|
79985
|
+
}[];
|
|
79986
|
+
complete: boolean;
|
|
79987
|
+
}>;
|
|
79583
79988
|
act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
|
|
79584
79989
|
id: string;
|
|
79585
79990
|
release: string;
|
|
@@ -80983,6 +81388,64 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
80983
81388
|
}>;
|
|
80984
81389
|
delete: (name: string, call?: ManagementCallOptions) => Promise<void>;
|
|
80985
81390
|
};
|
|
81391
|
+
/**
|
|
81392
|
+
* The hosted app's KV and SQL stores in test. `list` needs `read`; reading their contents and
|
|
81393
|
+
* deleting a store need `publish`. Reads never change data, and only a store no serving build
|
|
81394
|
+
* declares can be deleted.
|
|
81395
|
+
*/
|
|
81396
|
+
storage: {
|
|
81397
|
+
list: (call?: ManagementCallOptions) => Promise<{
|
|
81398
|
+
stores: {
|
|
81399
|
+
kind: string;
|
|
81400
|
+
name: string;
|
|
81401
|
+
createdAt: number | null;
|
|
81402
|
+
declared: boolean;
|
|
81403
|
+
description?: string | undefined;
|
|
81404
|
+
}[];
|
|
81405
|
+
}>;
|
|
81406
|
+
/** A SQL store's tables and views, without SQLite's and D1's own. */
|
|
81407
|
+
tables: (name: string, call?: ManagementCallOptions) => Promise<{
|
|
81408
|
+
tables: {
|
|
81409
|
+
name: string;
|
|
81410
|
+
kind: string;
|
|
81411
|
+
}[];
|
|
81412
|
+
}>;
|
|
81413
|
+
/** One page of 50 rows in the table's storage order, which rows changing in between can shift. */
|
|
81414
|
+
rows: (name: string, table: string, options?: {
|
|
81415
|
+
offset?: number;
|
|
81416
|
+
}, call?: ManagementCallOptions) => Promise<{
|
|
81417
|
+
table: string;
|
|
81418
|
+
columns: string[];
|
|
81419
|
+
rows: (string | number | {
|
|
81420
|
+
text: string;
|
|
81421
|
+
truncated: true;
|
|
81422
|
+
} | {
|
|
81423
|
+
blob: number;
|
|
81424
|
+
} | null)[][];
|
|
81425
|
+
offset: number;
|
|
81426
|
+
total: number;
|
|
81427
|
+
}>;
|
|
81428
|
+
/** One page of a KV store's keys; pass the returned `cursor` for the next. */
|
|
81429
|
+
keys: (name: string, options?: {
|
|
81430
|
+
prefix?: string;
|
|
81431
|
+
cursor?: string;
|
|
81432
|
+
}, call?: ManagementCallOptions) => Promise<{
|
|
81433
|
+
keys: {
|
|
81434
|
+
name: string;
|
|
81435
|
+
expiration: number | null;
|
|
81436
|
+
}[];
|
|
81437
|
+
cursor: string | null;
|
|
81438
|
+
}>;
|
|
81439
|
+
/** A KV value's size and, when it is UTF-8 text, a preview. */
|
|
81440
|
+
value: (name: string, key: string, call?: ManagementCallOptions) => Promise<{
|
|
81441
|
+
key: string;
|
|
81442
|
+
size: number;
|
|
81443
|
+
text: string | null;
|
|
81444
|
+
truncated: boolean;
|
|
81445
|
+
}>;
|
|
81446
|
+
/** Deletes a store no serving build declares, with all of its data. */
|
|
81447
|
+
delete: (kind: AppStorageKind, name: string, call?: ManagementCallOptions) => Promise<void>;
|
|
81448
|
+
};
|
|
80986
81449
|
/**
|
|
80987
81450
|
* The chains quest code can read token balances on with `ctx.wallet.balance()`, with their
|
|
80988
81451
|
* names; requires `read` permission. Any other chain fails the evaluation.
|
|
@@ -81719,4 +82182,4 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81719
82182
|
}>;
|
|
81720
82183
|
};
|
|
81721
82184
|
|
|
81722
|
-
export { APP_SECRET_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberCreateInput, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberCreateSchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|
|
82185
|
+
export { APP_KV_LIMIT, APP_MIGRATION_FILE_BYTES, APP_MIGRATION_LIMIT, APP_MIGRATION_TOTAL_BYTES, APP_SECRET_LIMIT, APP_SQL_LIMIT, APP_STORAGE_PREVIEW_CHARACTERS, APP_STORAGE_ROW_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AppStorage, type AppStorageCell, type AppStorageKeys, type AppStorageKind, type AppStorageList, type AppStorageRows, type AppStorageTables, type AppStorageValue, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|