@hot-updater/plugin-core 1.2.0-rc.40 → 1.2.0-rc.42

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.
@@ -57,14 +57,39 @@ interface StoredBundleDeployment {
57
57
  readonly release: DeployReleasePolicy;
58
58
  }
59
59
  type Deployment = BundleDeployment | StoredBundleDeployment;
60
+ /**
61
+ * How a native build's artifact reaches a device: installed directly (an
62
+ * APK, a simulator `.app`, or an ad hoc, development or enterprise `.ipa`),
63
+ * or through a store (an AAB, or an App Store `.ipa`). Part of the core API
64
+ * a standalone server's client implements.
65
+ */
66
+ type NativeBuildDistribution = "direct" | "store";
67
+ /**
68
+ * What tells sandbox builds apart in place of the channel, which pull requests
69
+ * reuse a sandbox build across: the app ID its artifact reports (its bundle
70
+ * identifier or application ID, with Android's `.sandbox` suffix), the URL
71
+ * scheme its preview links open, its artifact's kind, and how that installs.
72
+ * Part of the core API a standalone server's client implements.
73
+ */
74
+ interface NativeBuildSandboxScope {
75
+ readonly appId: string;
76
+ readonly urlScheme: string;
77
+ readonly artifactKind: NativeBuildArtifactKind;
78
+ readonly distribution: NativeBuildDistribution;
79
+ }
60
80
  /**
61
81
  * A native build's scope: its platform, the default channel it compiled in,
62
82
  * and whichever of the fingerprint and the app version the update strategy
63
- * selects by.
83
+ * selects by. With `sandbox`, the scope of sandbox builds of that fingerprint
84
+ * or app version, on any channel: `channel` is then the one a new build would
85
+ * embed, and no lookup reads it. A registration ignores `sandbox`: its own
86
+ * `isSandbox`, `sandboxAppId`, `sandboxUrlScheme`, `exportMethod` and
87
+ * artifact decide its scope.
64
88
  */
65
89
  type NativeBuildScope = {
66
90
  readonly platform: Platform;
67
91
  readonly channel: string;
92
+ readonly sandbox?: NativeBuildSandboxScope | null;
68
93
  } & ({
69
94
  readonly fingerprintHash: string;
70
95
  readonly appVersion: null;
@@ -91,16 +116,23 @@ type NativeBuildRegistration = NativeBuildScope & {
91
116
  */
92
117
  readonly buildNumber?: string | null;
93
118
  /**
94
- * Whether the artifact is a sandbox build; left out, it isn't. It must agree
95
- * with the channel: a sandbox build registers on a reserved `sandbox-*`
96
- * channel, and only a sandbox build does.
119
+ * Whether the artifact is a sandbox build, as the artifact says; left out,
120
+ * it isn't. A sandbox build registers on any channel, and is found through
121
+ * its sandbox scope, never a normal one.
97
122
  */
98
123
  readonly isSandbox?: boolean;
99
124
  /**
100
125
  * The URL scheme a sandbox build's artifact registers, which its preview
101
- * links open; null or left out for any other build.
126
+ * links open: required for a sandbox build, and null or left out for any
127
+ * other.
102
128
  */
103
129
  readonly sandboxUrlScheme?: string | null;
130
+ /**
131
+ * The app ID a sandbox build's artifact reports, its bundle identifier or
132
+ * application ID: required for a sandbox build, and null or left out for
133
+ * any other.
134
+ */
135
+ readonly sandboxAppId?: string | null;
104
136
  /**
105
137
  * How an `.ipa` was exported, read from its embedded profile; null or left
106
138
  * out for any other artifact, or an `.ipa` whose profile wasn't read.
@@ -152,6 +184,11 @@ interface IosDeviceOutcomeInput {
152
184
  /** Apple's words for `refused`, kept as the row's `apple_error`. */
153
185
  readonly reason?: string;
154
186
  }
187
+ /** The Apple account a device registry belongs to. */
188
+ interface IosDeviceAccount {
189
+ /** The App Store Connect issuer of the account. */
190
+ readonly issuerId: string;
191
+ }
155
192
  /** The device registry's Apple account, after a build tried to claim it. */
156
193
  interface IosDeviceAccountClaim {
157
194
  /** The App Store Connect issuer the registry belongs to. */
@@ -214,8 +251,10 @@ interface HotUpdaterCoreApi {
214
251
  * scope whose built-in bundle is older than that bundle: one read when the
215
252
  * newest is, and then a page of older builds per read until one is, when
216
253
  * builds made after the bundle are in the way. With `buildKey` too, only
217
- * builds of that key. A sandbox build's built-in bundle is no patch base, so
218
- * with `builtInOlderThan` a sandbox scope answers null without a read.
254
+ * builds of that key. With `scope.sandbox`, sandbox builds on any channel;
255
+ * without it, never one. A sandbox build's built-in bundle is no patch
256
+ * base, so with `builtInOlderThan` a sandbox scope answers null without a
257
+ * read.
219
258
  */
220
259
  findNativeBuild(scope: NativeBuildScope, options?: {
221
260
  readonly buildKey?: string;
@@ -347,6 +386,13 @@ interface HotUpdaterCoreApi {
347
386
  * account registers nothing.
348
387
  */
349
388
  claimIosDeviceAccount(issuerId: string): Promise<IosDeviceAccountClaim>;
389
+ /**
390
+ * The Apple account the device registry belongs to, read without claiming
391
+ * it: the claimed account, or with no claim yet, the one
392
+ * `claimIosDeviceAccount` would give it, the earliest its rows name. Null
393
+ * while nothing names one, when the first claim takes it.
394
+ */
395
+ findIosDeviceAccount(): Promise<IosDeviceAccount | null>;
350
396
  /**
351
397
  * Records that a native build's .ipa lists these devices, one write per
352
398
  * row: a row removed meanwhile is skipped.
@@ -368,4 +414,4 @@ interface HotUpdaterCoreApi {
368
414
  }): Promise<IosDeviceRow | null>;
369
415
  }
370
416
  //#endregion
371
- export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
417
+ export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccount, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildDistribution, NativeBuildRegistration, NativeBuildSandboxScope, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
@@ -57,14 +57,39 @@ interface StoredBundleDeployment {
57
57
  readonly release: DeployReleasePolicy;
58
58
  }
59
59
  type Deployment = BundleDeployment | StoredBundleDeployment;
60
+ /**
61
+ * How a native build's artifact reaches a device: installed directly (an
62
+ * APK, a simulator `.app`, or an ad hoc, development or enterprise `.ipa`),
63
+ * or through a store (an AAB, or an App Store `.ipa`). Part of the core API
64
+ * a standalone server's client implements.
65
+ */
66
+ type NativeBuildDistribution = "direct" | "store";
67
+ /**
68
+ * What tells sandbox builds apart in place of the channel, which pull requests
69
+ * reuse a sandbox build across: the app ID its artifact reports (its bundle
70
+ * identifier or application ID, with Android's `.sandbox` suffix), the URL
71
+ * scheme its preview links open, its artifact's kind, and how that installs.
72
+ * Part of the core API a standalone server's client implements.
73
+ */
74
+ interface NativeBuildSandboxScope {
75
+ readonly appId: string;
76
+ readonly urlScheme: string;
77
+ readonly artifactKind: NativeBuildArtifactKind;
78
+ readonly distribution: NativeBuildDistribution;
79
+ }
60
80
  /**
61
81
  * A native build's scope: its platform, the default channel it compiled in,
62
82
  * and whichever of the fingerprint and the app version the update strategy
63
- * selects by.
83
+ * selects by. With `sandbox`, the scope of sandbox builds of that fingerprint
84
+ * or app version, on any channel: `channel` is then the one a new build would
85
+ * embed, and no lookup reads it. A registration ignores `sandbox`: its own
86
+ * `isSandbox`, `sandboxAppId`, `sandboxUrlScheme`, `exportMethod` and
87
+ * artifact decide its scope.
64
88
  */
65
89
  type NativeBuildScope = {
66
90
  readonly platform: Platform;
67
91
  readonly channel: string;
92
+ readonly sandbox?: NativeBuildSandboxScope | null;
68
93
  } & ({
69
94
  readonly fingerprintHash: string;
70
95
  readonly appVersion: null;
@@ -91,16 +116,23 @@ type NativeBuildRegistration = NativeBuildScope & {
91
116
  */
92
117
  readonly buildNumber?: string | null;
93
118
  /**
94
- * Whether the artifact is a sandbox build; left out, it isn't. It must agree
95
- * with the channel: a sandbox build registers on a reserved `sandbox-*`
96
- * channel, and only a sandbox build does.
119
+ * Whether the artifact is a sandbox build, as the artifact says; left out,
120
+ * it isn't. A sandbox build registers on any channel, and is found through
121
+ * its sandbox scope, never a normal one.
97
122
  */
98
123
  readonly isSandbox?: boolean;
99
124
  /**
100
125
  * The URL scheme a sandbox build's artifact registers, which its preview
101
- * links open; null or left out for any other build.
126
+ * links open: required for a sandbox build, and null or left out for any
127
+ * other.
102
128
  */
103
129
  readonly sandboxUrlScheme?: string | null;
130
+ /**
131
+ * The app ID a sandbox build's artifact reports, its bundle identifier or
132
+ * application ID: required for a sandbox build, and null or left out for
133
+ * any other.
134
+ */
135
+ readonly sandboxAppId?: string | null;
104
136
  /**
105
137
  * How an `.ipa` was exported, read from its embedded profile; null or left
106
138
  * out for any other artifact, or an `.ipa` whose profile wasn't read.
@@ -152,6 +184,11 @@ interface IosDeviceOutcomeInput {
152
184
  /** Apple's words for `refused`, kept as the row's `apple_error`. */
153
185
  readonly reason?: string;
154
186
  }
187
+ /** The Apple account a device registry belongs to. */
188
+ interface IosDeviceAccount {
189
+ /** The App Store Connect issuer of the account. */
190
+ readonly issuerId: string;
191
+ }
155
192
  /** The device registry's Apple account, after a build tried to claim it. */
156
193
  interface IosDeviceAccountClaim {
157
194
  /** The App Store Connect issuer the registry belongs to. */
@@ -214,8 +251,10 @@ interface HotUpdaterCoreApi {
214
251
  * scope whose built-in bundle is older than that bundle: one read when the
215
252
  * newest is, and then a page of older builds per read until one is, when
216
253
  * builds made after the bundle are in the way. With `buildKey` too, only
217
- * builds of that key. A sandbox build's built-in bundle is no patch base, so
218
- * with `builtInOlderThan` a sandbox scope answers null without a read.
254
+ * builds of that key. With `scope.sandbox`, sandbox builds on any channel;
255
+ * without it, never one. A sandbox build's built-in bundle is no patch
256
+ * base, so with `builtInOlderThan` a sandbox scope answers null without a
257
+ * read.
219
258
  */
220
259
  findNativeBuild(scope: NativeBuildScope, options?: {
221
260
  readonly buildKey?: string;
@@ -347,6 +386,13 @@ interface HotUpdaterCoreApi {
347
386
  * account registers nothing.
348
387
  */
349
388
  claimIosDeviceAccount(issuerId: string): Promise<IosDeviceAccountClaim>;
389
+ /**
390
+ * The Apple account the device registry belongs to, read without claiming
391
+ * it: the claimed account, or with no claim yet, the one
392
+ * `claimIosDeviceAccount` would give it, the earliest its rows name. Null
393
+ * while nothing names one, when the first claim takes it.
394
+ */
395
+ findIosDeviceAccount(): Promise<IosDeviceAccount | null>;
350
396
  /**
351
397
  * Records that a native build's .ipa lists these devices, one write per
352
398
  * row: a row removed meanwhile is skipped.
@@ -368,4 +414,4 @@ interface HotUpdaterCoreApi {
368
414
  }): Promise<IosDeviceRow | null>;
369
415
  }
370
416
  //#endregion
371
- export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
417
+ export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccount, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildDistribution, NativeBuildRegistration, NativeBuildSandboxScope, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
@@ -273,7 +273,10 @@ const channels = require_schema.defineTable({
273
273
  /**
274
274
  * The native builds `native-build android` and `native-build ios` track, newest first
275
275
  * in each scope: a platform, a channel, and the fingerprint or app version
276
- * the build compiled in. `min_bundle_id` names the build's built-in bundle,
276
+ * the build compiled in. A sandbox build's scope has no channel: its app ID,
277
+ * URL scheme, artifact kind and distribution in its place, so pull requests
278
+ * reuse it across channels, while `channel_id` still names the channel it
279
+ * embeds. `min_bundle_id` names the build's built-in bundle,
277
280
  * a `bundles` row no release publishes. Its references keep no counters, so
278
281
  * adding this table changes no existing one; a channel with builds is
279
282
  * refused deletion through `byChannel`. `build_key` is the native build key
@@ -288,8 +291,8 @@ const channels = require_schema.defineTable({
288
291
  * newest build. The engine copies the scope key into `store_build_scope_key`
289
292
  * for that build alone, so `byStoreBuild` holds one entry per scope at most,
290
293
  * on every store, while any number of a scope's builds hold none.
291
- * `is_sandbox` is true on a sandbox build, set when it registers and never
292
- * changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
294
+ * `is_sandbox` is true on a sandbox build, set from its artifact when it
295
+ * registers and never changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
293
296
  * which its preview links open; null on any other build, and on a sandbox
294
297
  * build registered before the column, which registered the derived one.
295
298
  * `export_method` is how an `.ipa` was exported, read from its profile when
@@ -273,7 +273,10 @@ const channels = defineTable({
273
273
  /**
274
274
  * The native builds `native-build android` and `native-build ios` track, newest first
275
275
  * in each scope: a platform, a channel, and the fingerprint or app version
276
- * the build compiled in. `min_bundle_id` names the build's built-in bundle,
276
+ * the build compiled in. A sandbox build's scope has no channel: its app ID,
277
+ * URL scheme, artifact kind and distribution in its place, so pull requests
278
+ * reuse it across channels, while `channel_id` still names the channel it
279
+ * embeds. `min_bundle_id` names the build's built-in bundle,
277
280
  * a `bundles` row no release publishes. Its references keep no counters, so
278
281
  * adding this table changes no existing one; a channel with builds is
279
282
  * refused deletion through `byChannel`. `build_key` is the native build key
@@ -288,8 +291,8 @@ const channels = defineTable({
288
291
  * newest build. The engine copies the scope key into `store_build_scope_key`
289
292
  * for that build alone, so `byStoreBuild` holds one entry per scope at most,
290
293
  * on every store, while any number of a scope's builds hold none.
291
- * `is_sandbox` is true on a sandbox build, set when it registers and never
292
- * changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
294
+ * `is_sandbox` is true on a sandbox build, set from its artifact when it
295
+ * registers and never changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
293
296
  * which its preview links open; null on any other build, and on a sandbox
294
297
  * build registered before the column, which registered the derived one.
295
298
  * `export_method` is how an `.ipa` was exported, read from its profile when
package/dist/index.d.cts CHANGED
@@ -21,7 +21,7 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, Nati
21
21
  import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeBuildSandboxOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.cjs";
22
22
  import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.cjs";
23
23
  import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.cjs";
24
- import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
24
+ import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccount, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildDistribution, NativeBuildRegistration, NativeBuildSandboxScope, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
25
25
  import { DatabaseAdapterInputError, DatabaseAdapterInputErrorCode, DatabaseBundleNotFoundError, DatabaseRowReferencedError } from "./databaseErrors.cjs";
26
26
  import { createStorageKeyBuilder } from "./createStorageKeyBuilder.cjs";
27
27
  import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.cjs";
@@ -51,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.cjs";
51
51
  import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.cjs";
52
52
  import { writeSchemaSettings } from "./engine/db/schemaSettings.cjs";
53
53
  import { createSettingsMigrator } from "./engine/db/settingsMigrator.cjs";
54
- export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
54
+ export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccount, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildDistribution, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSandboxScope, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
package/dist/index.d.mts CHANGED
@@ -21,7 +21,7 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, Nati
21
21
  import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeBuildSandboxOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.mjs";
22
22
  import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.mjs";
23
23
  import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.mjs";
24
- import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
24
+ import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccount, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildDistribution, NativeBuildRegistration, NativeBuildSandboxScope, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
25
25
  import { DatabaseAdapterInputError, DatabaseAdapterInputErrorCode, DatabaseBundleNotFoundError, DatabaseRowReferencedError } from "./databaseErrors.mjs";
26
26
  import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
27
27
  import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.mjs";
@@ -51,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.mjs";
51
51
  import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
52
52
  import { writeSchemaSettings } from "./engine/db/schemaSettings.mjs";
53
53
  import { createSettingsMigrator } from "./engine/db/settingsMigrator.mjs";
54
- export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
54
+ export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccount, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildDistribution, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSandboxScope, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
@@ -118,8 +118,9 @@ interface NativeBuildRow {
118
118
  readonly is_store_build: boolean;
119
119
  /**
120
120
  * Whether the build is a sandbox build, one built from a scheme with
121
- * `sandbox: true` or imported with the sandbox layer. Set when the build
122
- * registers and never changed. A sandbox build is never the store build.
121
+ * `sandbox: true` or imported with the sandbox layer: set from its artifact
122
+ * when the build registers, on any channel, and never changed. A sandbox
123
+ * build is never the store build.
123
124
  */
124
125
  readonly is_sandbox: boolean;
125
126
  /**
@@ -118,8 +118,9 @@ interface NativeBuildRow {
118
118
  readonly is_store_build: boolean;
119
119
  /**
120
120
  * Whether the build is a sandbox build, one built from a scheme with
121
- * `sandbox: true` or imported with the sandbox layer. Set when the build
122
- * registers and never changed. A sandbox build is never the store build.
121
+ * `sandbox: true` or imported with the sandbox layer: set from its artifact
122
+ * when the build registers, on any channel, and never changed. A sandbox
123
+ * build is never the store build.
123
124
  */
124
125
  readonly is_sandbox: boolean;
125
126
  /**
@@ -202,7 +202,7 @@ interface NativeBuildAndroidScheme {
202
202
  /**
203
203
  * Builds the app with the sandbox native layer, for testing OTA bundles on
204
204
  * a device, as a separate app: the application ID gets a `.sandbox` suffix.
205
- * It registers on the reserved channel `sandbox-<scheme>`, and reaches
205
+ * It embeds the project's channel, as any scheme's build does, and reaches
206
206
  * Google Play's internal testing only. No other build compiles the layer.
207
207
  * An object turns it on with options: `urlScheme` is the URL scheme its
208
208
  * preview links and QR codes open, `hu-sandbox-<packageName>` by default.
@@ -314,8 +314,8 @@ interface NativeBuildIosScheme {
314
314
  * a device. It has the bundle identifier its Xcode configuration builds,
315
315
  * which `bundleIdentifier` must name: the store app's by default, which it
316
316
  * replaces on a device, or its own from a separate configuration. It
317
- * registers on the reserved channel `sandbox-<scheme>`, and its `.ipa` is for
318
- * TestFlight internal testing only, never App Store review. No other build
317
+ * embeds the project's channel, as any scheme's build does, and its `.ipa`
318
+ * is for TestFlight internal testing only, never App Store review. No other build
319
319
  * compiles the layer. An object turns it on with options: `urlScheme` is
320
320
  * the URL scheme its preview links and QR codes open,
321
321
  * `hu-sandbox-<bundleIdentifier>` by default.
@@ -202,7 +202,7 @@ interface NativeBuildAndroidScheme {
202
202
  /**
203
203
  * Builds the app with the sandbox native layer, for testing OTA bundles on
204
204
  * a device, as a separate app: the application ID gets a `.sandbox` suffix.
205
- * It registers on the reserved channel `sandbox-<scheme>`, and reaches
205
+ * It embeds the project's channel, as any scheme's build does, and reaches
206
206
  * Google Play's internal testing only. No other build compiles the layer.
207
207
  * An object turns it on with options: `urlScheme` is the URL scheme its
208
208
  * preview links and QR codes open, `hu-sandbox-<packageName>` by default.
@@ -314,8 +314,8 @@ interface NativeBuildIosScheme {
314
314
  * a device. It has the bundle identifier its Xcode configuration builds,
315
315
  * which `bundleIdentifier` must name: the store app's by default, which it
316
316
  * replaces on a device, or its own from a separate configuration. It
317
- * registers on the reserved channel `sandbox-<scheme>`, and its `.ipa` is for
318
- * TestFlight internal testing only, never App Store review. No other build
317
+ * embeds the project's channel, as any scheme's build does, and its `.ipa`
318
+ * is for TestFlight internal testing only, never App Store review. No other build
319
319
  * compiles the layer. An object turns it on with options: `urlScheme` is
320
320
  * the URL scheme its preview links and QR codes open,
321
321
  * `hu-sandbox-<bundleIdentifier>` by default.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-core",
3
- "version": "1.2.0-rc.40",
3
+ "version": "1.2.0-rc.42",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  "es-toolkit": "^1.32.0",
46
46
  "mime": "^4.0.4",
47
47
  "verkit": "0.4.0",
48
- "@hot-updater/protocol": "1.2.0-rc.40"
48
+ "@hot-updater/protocol": "1.2.0-rc.42"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@electric-sql/pglite": "0.4.1",