@domino-sdk/relay 1.1.1 → 1.2.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/browser.d.ts CHANGED
@@ -6,6 +6,6 @@ import './submission-input-BZkm6ohU.js';
6
6
  import './wallet-YssWxGg8.js';
7
7
  import './schema-DfJzH2ci.js';
8
8
  import './profiles-D2aFcOxu.js';
9
- export { C as CosmosChains, D as DiscoveredWallet, f as Eip1193Provider, E as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, g as SignInClient, e as SignInIcon, S as SignInMethods, a as SignInOption, h as SignInOptions, b as SignInUnavailable, d as SignInWallet, i as SolanaInjectedProvider, j as StandardWallet, k as StandardWalletAccount, W as WalletSignInOption, l as browserSubmissionStore, m as cosmosChainList, n as cosmosSigner, c as createBrowserRelayClient, o as discoverCosmosWallets, p as discoverEvmWallets, q as discoverSignInWallets, r as discoverSolanaWallets, s as evmSigner, t as signInOptions, u as solanaSigner, w as walletStandardSolanaSigner } from './browser-Cf1opQjX.js';
9
+ export { C as CosmosChains, D as DiscoveredWallet, f as Eip1193Provider, E as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, g as SignInClient, e as SignInIcon, S as SignInMethods, a as SignInOption, h as SignInOptions, b as SignInUnavailable, d as SignInWallet, i as SolanaInjectedProvider, j as StandardWallet, k as StandardWalletAccount, W as WalletSignInOption, l as browserSubmissionStore, m as cosmosChainList, n as cosmosSigner, c as createBrowserRelayClient, o as discoverCosmosWallets, p as discoverEvmWallets, q as discoverSignInWallets, r as discoverSolanaWallets, s as evmSigner, t as signInOptions, u as solanaSigner, w as walletStandardSolanaSigner } from './browser-Cho1duR6.js';
10
10
  import 'zod';
11
11
  import './request-error-DWduJCGV.js';
@@ -7,8 +7,8 @@ import { aG as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollm
7
7
  import { E as Entitlement, a as AttemptStatus, h as TrackerSkipCode, bI as submitSchema, aI as contentPerformanceQuerySchema, T as TieredRewardReference } from '../schema-DfJzH2ci.js';
8
8
  import { y as walletAddressInputSchema, I as walletSignatureSchema, L as LinkedWallet, f as WalletSigner, d as WalletSignInNetwork } from '../wallet-YssWxGg8.js';
9
9
  import { F as profileUpdateSchema, c as ProfileCompletionQuery, f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-D2aFcOxu.js';
10
- import { c as createBrowserRelayClient, J as JSONType, S as SignInMethods, C as CosmosChains, a as SignInOption, b as SignInUnavailable, d as SignInWallet, D as DiscoveredWallet } from '../browser-Cf1opQjX.js';
11
- export { E as EmailSignInOption, O as OAuthSignInOption, e as SignInIcon, W as WalletSignInOption } from '../browser-Cf1opQjX.js';
10
+ import { c as createBrowserRelayClient, J as JSONType, S as SignInMethods, C as CosmosChains, a as SignInOption, b as SignInUnavailable, d as SignInWallet, D as DiscoveredWallet } from '../browser-Cho1duR6.js';
11
+ export { E as EmailSignInOption, O as OAuthSignInOption, e as SignInIcon, W as WalletSignInOption } from '../browser-Cho1duR6.js';
12
12
  import * as zod from 'zod';
13
13
  import { z } from 'zod';
14
14
  import { a as AuthProvider, A as AccountConnection } from '../submission-input-BZkm6ohU.js';
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-B8k9Sa_a.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-o1E-Hqyt.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';
@@ -3,8 +3,8 @@ import { O as OpenIdentityKind, a1 as TrackerDataSchema, a9 as TrackerQuery, bV
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-B8k9Sa_a.js';
7
- export { c as activityTypeSchema, d as activityTypes } from '../activity-B8k9Sa_a.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-o1E-Hqyt.js';
7
+ export { c as activityTypeSchema, d as activityTypes } from '../activity-o1E-Hqyt.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';
@@ -369,6 +369,11 @@ declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
369
369
  }>>;
370
370
  /** Most app secrets a project environment can hold. */
371
371
  declare const APP_SECRET_LIMIT = 50;
372
+ declare const APP_KV_LIMIT = 5;
373
+ declare const APP_SQL_LIMIT = 5;
374
+ declare const APP_MIGRATION_LIMIT = 100;
375
+ declare const APP_MIGRATION_FILE_BYTES = 90000;
376
+ declare const APP_MIGRATION_TOTAL_BYTES = 1000000;
372
377
  /**
373
378
  * An app secret's name: the Worker binding it becomes. `DOMINO_` names and `ASSETS` are the
374
379
  * platform's own bindings.
@@ -423,6 +428,84 @@ declare const hostedAppSecretsSchema: z.ZodObject<{
423
428
  secrets: z.ZodRecord<z.ZodString, z.ZodString>;
424
429
  }, z.core.$strict>;
425
430
  type HostedAppSecrets = z.infer<typeof hostedAppSecretsSchema>;
431
+ declare const appStorageSchema: z.ZodObject<{
432
+ kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
433
+ description: z.ZodString;
434
+ }, z.core.$strict>>>;
435
+ sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
436
+ description: z.ZodString;
437
+ migrations: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strict>>>;
439
+ }, z.core.$strict>;
440
+ type AppStorage = z.infer<typeof appStorageSchema>;
441
+ declare const appStorageKindSchema: z.ZodEnum<{
442
+ kv: "kv";
443
+ sql: "sql";
444
+ }>;
445
+ type AppStorageKind = z.infer<typeof appStorageKindSchema>;
446
+ declare const appStorageListSchema: z.ZodObject<{
447
+ stores: z.ZodArray<z.ZodObject<{
448
+ kind: z.ZodString;
449
+ name: z.ZodString;
450
+ createdAt: z.ZodNullable<z.ZodNumber>;
451
+ declared: z.ZodBoolean;
452
+ description: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strip>>;
454
+ }, z.core.$strip>;
455
+ type AppStorageList = z.infer<typeof appStorageListSchema>;
456
+ /** Rows per page when browsing a SQL store's table. */
457
+ declare const APP_STORAGE_ROW_LIMIT = 50;
458
+ /** Longest text a browsed cell or KV value shows; longer values end in `truncated`. */
459
+ declare const APP_STORAGE_PREVIEW_CHARACTERS = 2000;
460
+ /**
461
+ * A browsed SQL value. Text longer than the preview is cut and flagged; a BLOB shows only its
462
+ * size in bytes.
463
+ */
464
+ declare const appStorageCellSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
465
+ text: z.ZodString;
466
+ truncated: z.ZodLiteral<true>;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ blob: z.ZodNumber;
469
+ }, z.core.$strip>]>;
470
+ type AppStorageCell = z.infer<typeof appStorageCellSchema>;
471
+ declare const appStorageTablesSchema: z.ZodObject<{
472
+ tables: z.ZodArray<z.ZodObject<{
473
+ name: z.ZodString;
474
+ kind: z.ZodString;
475
+ }, z.core.$strip>>;
476
+ }, z.core.$strip>;
477
+ type AppStorageTables = z.infer<typeof appStorageTablesSchema>;
478
+ declare const appStorageRowsSchema: z.ZodObject<{
479
+ table: z.ZodString;
480
+ columns: z.ZodArray<z.ZodString>;
481
+ rows: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
482
+ text: z.ZodString;
483
+ truncated: z.ZodLiteral<true>;
484
+ }, z.core.$strip>, z.ZodObject<{
485
+ blob: z.ZodNumber;
486
+ }, z.core.$strip>]>>>;
487
+ offset: z.ZodNumber;
488
+ total: z.ZodNumber;
489
+ }, z.core.$strip>;
490
+ type AppStorageRows = z.infer<typeof appStorageRowsSchema>;
491
+ declare const appStorageKeysSchema: z.ZodObject<{
492
+ keys: z.ZodArray<z.ZodObject<{
493
+ name: z.ZodString;
494
+ expiration: z.ZodNullable<z.ZodNumber>;
495
+ }, z.core.$strip>>;
496
+ cursor: z.ZodNullable<z.ZodString>;
497
+ }, z.core.$strip>;
498
+ type AppStorageKeys = z.infer<typeof appStorageKeysSchema>;
499
+ declare const appStorageValueSchema: z.ZodObject<{
500
+ key: z.ZodString;
501
+ size: z.ZodNumber;
502
+ text: z.ZodNullable<z.ZodString>;
503
+ truncated: z.ZodBoolean;
504
+ }, z.core.$strip>;
505
+ type AppStorageValue = z.infer<typeof appStorageValueSchema>;
506
+ declare const appMigrationNameSchema: z.ZodString;
507
+ /** Wrangler compares the leading number first, then the filename (workers-sdk d1/migrations/helpers.ts). */
508
+ declare function compareAppMigrations(a: string, b: string): number;
426
509
  declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
427
510
  routing: z.ZodDefault<z.ZodEnum<{
428
511
  legacy: "legacy";
@@ -443,6 +526,15 @@ declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
443
526
  description: z.ZodString;
444
527
  required: z.ZodDefault<z.ZodBoolean>;
445
528
  }, z.core.$strict>>>;
529
+ storage: z.ZodOptional<z.ZodObject<{
530
+ kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
531
+ description: z.ZodString;
532
+ }, z.core.$strict>>>;
533
+ sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
534
+ description: z.ZodString;
535
+ migrations: z.ZodOptional<z.ZodString>;
536
+ }, z.core.$strict>>>;
537
+ }, z.core.$strict>>;
446
538
  routing: z.ZodDefault<z.ZodEnum<{
447
539
  legacy: "legacy";
448
540
  transparent: "transparent";
@@ -802,6 +894,10 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
802
894
  transparent: "transparent";
803
895
  }>>;
804
896
  worker: z.ZodOptional<z.ZodObject<{
897
+ migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
898
+ name: z.ZodString;
899
+ sql: z.ZodString;
900
+ }, z.core.$strict>>>>;
805
901
  modules: z.ZodArray<z.ZodObject<{
806
902
  path: z.ZodString;
807
903
  type: z.ZodEnum<{
@@ -821,6 +917,15 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
821
917
  description: z.ZodString;
822
918
  required: z.ZodDefault<z.ZodBoolean>;
823
919
  }, z.core.$strict>>>;
920
+ storage: z.ZodOptional<z.ZodObject<{
921
+ kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
922
+ description: z.ZodString;
923
+ }, z.core.$strict>>>;
924
+ sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
925
+ description: z.ZodString;
926
+ migrations: z.ZodOptional<z.ZodString>;
927
+ }, z.core.$strict>>>;
928
+ }, z.core.$strict>>;
824
929
  }, z.core.$strict>>;
825
930
  assets: z.ZodArray<z.ZodObject<{
826
931
  path: z.ZodString;
@@ -846,6 +951,10 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
846
951
  transparent: "transparent";
847
952
  }>>;
848
953
  worker: z.ZodOptional<z.ZodObject<{
954
+ migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
955
+ name: z.ZodString;
956
+ sql: z.ZodString;
957
+ }, z.core.$strict>>>>;
849
958
  modules: z.ZodArray<z.ZodObject<{
850
959
  path: z.ZodString;
851
960
  type: z.ZodEnum<{
@@ -865,6 +974,15 @@ declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
865
974
  description: z.ZodString;
866
975
  required: z.ZodDefault<z.ZodBoolean>;
867
976
  }, z.core.$strict>>>;
977
+ storage: z.ZodOptional<z.ZodObject<{
978
+ kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
979
+ description: z.ZodString;
980
+ }, z.core.$strict>>>;
981
+ sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
982
+ description: z.ZodString;
983
+ migrations: z.ZodOptional<z.ZodString>;
984
+ }, z.core.$strict>>>;
985
+ }, z.core.$strict>>;
868
986
  }, z.core.$strict>>;
869
987
  assets: z.ZodArray<z.ZodObject<{
870
988
  path: z.ZodString;
@@ -39248,6 +39366,54 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
39248
39366
  }>;
39249
39367
  delete: (name: string, call?: ManagementCallOptions) => Promise<void>;
39250
39368
  };
39369
+ storage: {
39370
+ list: (call?: ManagementCallOptions) => Promise<{
39371
+ stores: {
39372
+ kind: string;
39373
+ name: string;
39374
+ createdAt: number | null;
39375
+ declared: boolean;
39376
+ description?: string | undefined;
39377
+ }[];
39378
+ }>;
39379
+ tables: (name: string, call?: ManagementCallOptions) => Promise<{
39380
+ tables: {
39381
+ name: string;
39382
+ kind: string;
39383
+ }[];
39384
+ }>;
39385
+ rows: (name: string, table: string, options?: {
39386
+ offset?: number;
39387
+ }, call?: ManagementCallOptions) => Promise<{
39388
+ table: string;
39389
+ columns: string[];
39390
+ rows: (string | number | {
39391
+ text: string;
39392
+ truncated: true;
39393
+ } | {
39394
+ blob: number;
39395
+ } | null)[][];
39396
+ offset: number;
39397
+ total: number;
39398
+ }>;
39399
+ keys: (name: string, options?: {
39400
+ prefix?: string;
39401
+ cursor?: string;
39402
+ }, call?: ManagementCallOptions) => Promise<{
39403
+ keys: {
39404
+ name: string;
39405
+ expiration: number | null;
39406
+ }[];
39407
+ cursor: string | null;
39408
+ }>;
39409
+ value: (name: string, key: string, call?: ManagementCallOptions) => Promise<{
39410
+ key: string;
39411
+ size: number;
39412
+ text: string | null;
39413
+ truncated: boolean;
39414
+ }>;
39415
+ delete: (kind: AppStorageKind, name: string, call?: ManagementCallOptions) => Promise<void>;
39416
+ };
39251
39417
  walletBalanceChains: (call?: ManagementCallOptions) => Promise<{
39252
39418
  chains: {
39253
39419
  chain: `cosmos:${string}` | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | `eip155:${number}`;
@@ -42712,8 +42878,9 @@ type ManagementClientOptions = {
42712
42878
  type ManagementRawInit = RequestInit & {
42713
42879
  timeout?: number;
42714
42880
  };
42715
- type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers"> & {
42881
+ type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage"> & {
42716
42882
  testMembers?: ReturnType<typeof createManagementClient>["testMembers"];
42883
+ storage?: ReturnType<typeof createManagementClient>["storage"];
42717
42884
  };
42718
42885
  declare function createManagementClient(options: ManagementClientOptions): {
42719
42886
  raw: (path: string, init?: ManagementRawInit) => Promise<Response>;
@@ -80983,6 +81150,64 @@ declare function createManagementClient(options: ManagementClientOptions): {
80983
81150
  }>;
80984
81151
  delete: (name: string, call?: ManagementCallOptions) => Promise<void>;
80985
81152
  };
81153
+ /**
81154
+ * The hosted app's KV and SQL stores in test. `list` needs `read`; reading their contents and
81155
+ * deleting a store need `publish`. Reads never change data, and only a store no serving build
81156
+ * declares can be deleted.
81157
+ */
81158
+ storage: {
81159
+ list: (call?: ManagementCallOptions) => Promise<{
81160
+ stores: {
81161
+ kind: string;
81162
+ name: string;
81163
+ createdAt: number | null;
81164
+ declared: boolean;
81165
+ description?: string | undefined;
81166
+ }[];
81167
+ }>;
81168
+ /** A SQL store's tables and views, without SQLite's and D1's own. */
81169
+ tables: (name: string, call?: ManagementCallOptions) => Promise<{
81170
+ tables: {
81171
+ name: string;
81172
+ kind: string;
81173
+ }[];
81174
+ }>;
81175
+ /** One page of 50 rows in the table's storage order, which rows changing in between can shift. */
81176
+ rows: (name: string, table: string, options?: {
81177
+ offset?: number;
81178
+ }, call?: ManagementCallOptions) => Promise<{
81179
+ table: string;
81180
+ columns: string[];
81181
+ rows: (string | number | {
81182
+ text: string;
81183
+ truncated: true;
81184
+ } | {
81185
+ blob: number;
81186
+ } | null)[][];
81187
+ offset: number;
81188
+ total: number;
81189
+ }>;
81190
+ /** One page of a KV store's keys; pass the returned `cursor` for the next. */
81191
+ keys: (name: string, options?: {
81192
+ prefix?: string;
81193
+ cursor?: string;
81194
+ }, call?: ManagementCallOptions) => Promise<{
81195
+ keys: {
81196
+ name: string;
81197
+ expiration: number | null;
81198
+ }[];
81199
+ cursor: string | null;
81200
+ }>;
81201
+ /** A KV value's size and, when it is UTF-8 text, a preview. */
81202
+ value: (name: string, key: string, call?: ManagementCallOptions) => Promise<{
81203
+ key: string;
81204
+ size: number;
81205
+ text: string | null;
81206
+ truncated: boolean;
81207
+ }>;
81208
+ /** Deletes a store no serving build declares, with all of its data. */
81209
+ delete: (kind: AppStorageKind, name: string, call?: ManagementCallOptions) => Promise<void>;
81210
+ };
80986
81211
  /**
80987
81212
  * The chains quest code can read token balances on with `ctx.wallet.balance()`, with their
80988
81213
  * names; requires `read` permission. Any other chain fails the evaluation.
@@ -81719,4 +81944,4 @@ declare function createManagementClient(options: ManagementClientOptions): {
81719
81944
  }>;
81720
81945
  };
81721
81946
 
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 };
81947
+ 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 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, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };