@hot-updater/plugin-core 1.0.0-rc.15 → 1.0.0-rc.17

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.
Files changed (151) hide show
  1. package/dist/coreApi.d.cts +131 -0
  2. package/dist/coreApi.d.mts +131 -0
  3. package/dist/database/adapter.cjs +46 -0
  4. package/dist/database/adapter.d.cts +183 -0
  5. package/dist/database/adapter.d.mts +183 -0
  6. package/dist/database/adapter.mjs +38 -0
  7. package/dist/{insightsDistinctSummary.mjs → database/distinct.cjs} +25 -11
  8. package/dist/database/distinct.d.cts +16 -0
  9. package/dist/database/distinct.d.mts +16 -0
  10. package/dist/{insightsDistinctSummary.cjs → database/distinct.mjs} +21 -15
  11. package/dist/database/memoryAdapter.cjs +115 -0
  12. package/dist/database/memoryAdapter.d.cts +16 -0
  13. package/dist/database/memoryAdapter.d.mts +16 -0
  14. package/dist/database/memoryAdapter.mjs +115 -0
  15. package/dist/database/values.cjs +110 -0
  16. package/dist/database/values.d.cts +30 -0
  17. package/dist/database/values.d.mts +30 -0
  18. package/dist/database/values.mjs +100 -0
  19. package/dist/database/verifyAdapter.cjs +136 -0
  20. package/dist/database/verifyAdapter.d.cts +29 -0
  21. package/dist/database/verifyAdapter.d.mts +29 -0
  22. package/dist/database/verifyAdapter.mjs +135 -0
  23. package/dist/databaseErrors.cjs +30 -0
  24. package/dist/databaseErrors.d.cts +21 -0
  25. package/dist/databaseErrors.d.mts +21 -0
  26. package/dist/databaseErrors.mjs +28 -0
  27. package/dist/databaseJsonValue.cjs +0 -2
  28. package/dist/databaseJsonValue.d.cts +3 -3
  29. package/dist/databaseJsonValue.d.mts +3 -3
  30. package/dist/databaseJsonValue.mjs +1 -2
  31. package/dist/databaseMetadata.cjs +2 -2
  32. package/dist/databaseMetadata.mjs +1 -1
  33. package/dist/index.cjs +9 -39
  34. package/dist/index.d.cts +13 -19
  35. package/dist/index.d.mts +13 -19
  36. package/dist/index.mjs +7 -14
  37. package/dist/internal.cjs +37 -20
  38. package/dist/internal.d.cts +11 -12
  39. package/dist/internal.d.mts +11 -12
  40. package/dist/internal.mjs +8 -6
  41. package/dist/releaseCatalogCompiler.cjs +1 -1
  42. package/dist/releaseCatalogCompiler.mjs +2 -2
  43. package/dist/releaseCatalogMutation.cjs +0 -292
  44. package/dist/releaseCatalogMutation.d.cts +4 -45
  45. package/dist/releaseCatalogMutation.d.mts +4 -45
  46. package/dist/releaseCatalogMutation.mjs +1 -288
  47. package/dist/releaseManagement.cjs +0 -221
  48. package/dist/releaseManagement.d.cts +4 -28
  49. package/dist/releaseManagement.d.mts +4 -28
  50. package/dist/releaseManagement.mjs +1 -216
  51. package/dist/types/databaseConfig.cjs +5 -0
  52. package/dist/types/databaseConfig.d.cts +61 -0
  53. package/dist/types/databaseConfig.d.mts +61 -0
  54. package/dist/types/databaseConfig.mjs +5 -0
  55. package/dist/types/databaseOperations.d.cts +5 -174
  56. package/dist/types/databaseOperations.d.mts +5 -174
  57. package/dist/types/databaseRows.d.cts +1 -53
  58. package/dist/types/databaseRows.d.mts +1 -53
  59. package/dist/types/index.cjs +2 -0
  60. package/dist/types/index.d.cts +8 -74
  61. package/dist/types/index.d.mts +8 -74
  62. package/dist/types/index.mjs +2 -1
  63. package/dist/types/internal.d.cts +4 -8
  64. package/dist/types/internal.d.mts +4 -8
  65. package/dist/types/models.d.cts +14 -0
  66. package/dist/types/models.d.mts +14 -0
  67. package/dist/types/public.d.cts +4 -3
  68. package/dist/types/public.d.mts +4 -3
  69. package/package.json +1 -1
  70. package/dist/calculatePagination.cjs +0 -25
  71. package/dist/calculatePagination.d.cts +0 -12
  72. package/dist/calculatePagination.d.mts +0 -12
  73. package/dist/calculatePagination.mjs +0 -25
  74. package/dist/createDatabasePlugin.cjs +0 -875
  75. package/dist/createDatabasePlugin.d.cts +0 -28
  76. package/dist/createDatabasePlugin.d.mts +0 -28
  77. package/dist/createDatabasePlugin.mjs +0 -871
  78. package/dist/databaseClient.cjs +0 -117
  79. package/dist/databaseClient.d.cts +0 -32
  80. package/dist/databaseClient.d.mts +0 -32
  81. package/dist/databaseClient.mjs +0 -114
  82. package/dist/databaseClientReads.cjs +0 -115
  83. package/dist/databaseClientReads.mjs +0 -113
  84. package/dist/databaseClientUpdates.cjs +0 -37
  85. package/dist/databaseClientUpdates.d.cts +0 -11
  86. package/dist/databaseClientUpdates.d.mts +0 -11
  87. package/dist/databaseClientUpdates.mjs +0 -35
  88. package/dist/databasePluginCrud.cjs +0 -87
  89. package/dist/databasePluginCrud.d.cts +0 -4
  90. package/dist/databasePluginCrud.d.mts +0 -4
  91. package/dist/databasePluginCrud.mjs +0 -86
  92. package/dist/databasePluginCrudValidation.d.cts +0 -6
  93. package/dist/databasePluginCrudValidation.d.mts +0 -6
  94. package/dist/databasePluginCrudValidationErrors.cjs +0 -11
  95. package/dist/databasePluginCrudValidationErrors.d.cts +0 -9
  96. package/dist/databasePluginCrudValidationErrors.d.mts +0 -9
  97. package/dist/databasePluginCrudValidationErrors.mjs +0 -11
  98. package/dist/databasePluginCrudValidationFields.cjs +0 -284
  99. package/dist/databasePluginCrudValidationFields.d.cts +0 -1
  100. package/dist/databasePluginCrudValidationFields.d.mts +0 -1
  101. package/dist/databasePluginCrudValidationFields.mjs +0 -272
  102. package/dist/databasePluginCrudValidationMutations.cjs +0 -88
  103. package/dist/databasePluginCrudValidationMutations.d.cts +0 -1
  104. package/dist/databasePluginCrudValidationMutations.d.mts +0 -1
  105. package/dist/databasePluginCrudValidationMutations.mjs +0 -82
  106. package/dist/databasePluginCrudValidationQueries.cjs +0 -103
  107. package/dist/databasePluginCrudValidationQueries.d.cts +0 -2
  108. package/dist/databasePluginCrudValidationQueries.d.mts +0 -2
  109. package/dist/databasePluginCrudValidationQueries.mjs +0 -97
  110. package/dist/databasePluginCrudValidationRows.cjs +0 -55
  111. package/dist/databasePluginCrudValidationRows.d.cts +0 -1
  112. package/dist/databasePluginCrudValidationRows.d.mts +0 -1
  113. package/dist/databasePluginCrudValidationRows.mjs +0 -53
  114. package/dist/databasePluginTransaction.cjs +0 -7
  115. package/dist/databasePluginTransaction.mjs +0 -7
  116. package/dist/insightsContract.cjs +0 -192
  117. package/dist/insightsContract.d.cts +0 -9
  118. package/dist/insightsContract.d.mts +0 -9
  119. package/dist/insightsContract.mjs +0 -189
  120. package/dist/insightsDistinctSummary.d.cts +0 -12
  121. package/dist/insightsDistinctSummary.d.mts +0 -12
  122. package/dist/insightsLatestQueries.cjs +0 -53
  123. package/dist/insightsLatestQueries.d.cts +0 -13
  124. package/dist/insightsLatestQueries.d.mts +0 -13
  125. package/dist/insightsLatestQueries.mjs +0 -52
  126. package/dist/insightsOverview.cjs +0 -139
  127. package/dist/insightsOverview.d.cts +0 -40
  128. package/dist/insightsOverview.d.mts +0 -40
  129. package/dist/insightsOverview.mjs +0 -135
  130. package/dist/paginateBundles.cjs +0 -53
  131. package/dist/paginateBundles.d.cts +0 -13
  132. package/dist/paginateBundles.d.mts +0 -13
  133. package/dist/paginateBundles.mjs +0 -53
  134. package/dist/queryBundles.cjs +0 -34
  135. package/dist/queryBundles.d.cts +0 -9
  136. package/dist/queryBundles.d.mts +0 -9
  137. package/dist/queryBundles.mjs +0 -32
  138. package/dist/requestBundleCache.cjs +0 -22
  139. package/dist/requestBundleCache.d.cts +0 -8
  140. package/dist/requestBundleCache.d.mts +0 -8
  141. package/dist/requestBundleCache.mjs +0 -22
  142. package/dist/types/database.d.cts +0 -5
  143. package/dist/types/database.d.mts +0 -5
  144. package/dist/types/databaseFields.cjs +0 -85
  145. package/dist/types/databaseFields.d.cts +0 -12
  146. package/dist/types/databaseFields.d.mts +0 -12
  147. package/dist/types/databaseFields.mjs +0 -85
  148. package/dist/types/databasePlugin.d.cts +0 -388
  149. package/dist/types/databasePlugin.d.mts +0 -388
  150. package/dist/types/databaseQuery.d.cts +0 -46
  151. package/dist/types/databaseQuery.d.mts +0 -46
@@ -1,388 +0,0 @@
1
- import { ApiKeyRow, BundleEventRow, BundlePatchRow, BundleRow, ChannelRow, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
2
- import { BundleRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
3
- import { DatabaseBundleQueryOrder, DatabaseBundleQueryWhere } from "./index.cjs";
4
- //#region src/types/databasePlugin.d.ts
5
- interface BundleModelQuery {
6
- readonly where?: DatabaseBundleQueryWhere;
7
- readonly limit: number;
8
- readonly offset: number;
9
- readonly orderBy: DatabaseBundleQueryOrder;
10
- }
11
- interface BundleModel {
12
- findById(id: string): Promise<BundleRow | null>;
13
- findMany(query: BundleModelQuery): Promise<readonly BundleRow[]>;
14
- count(where?: DatabaseBundleQueryWhere): Promise<number>;
15
- }
16
- interface BundlePatchModel {
17
- findByBundleIds(bundleIds: readonly string[]): Promise<readonly BundlePatchRow[]>;
18
- }
19
- interface ReleaseModel {
20
- findById(id: string): Promise<ReleaseRow | null>;
21
- findMany(input: {
22
- readonly afterReleaseId?: string;
23
- readonly beforeReleaseId?: string;
24
- readonly bundleId?: string;
25
- readonly channelId?: string;
26
- readonly enabled?: boolean;
27
- readonly platform?: "ios" | "android";
28
- readonly targetAppVersion?: string;
29
- readonly limit: number;
30
- }): Promise<readonly ReleaseRow[]>;
31
- findManyByScope(input: {
32
- readonly scopeKey: string;
33
- readonly afterReleaseId?: string;
34
- readonly limit: number;
35
- readonly consistency: "strong";
36
- }): Promise<readonly ReleaseRow[]>;
37
- }
38
- interface ReleaseCatalogModel {
39
- findByScopeKey(scopeKey: string): Promise<ReleaseCatalogRow | null>;
40
- findMany(input: {
41
- readonly afterScopeKey?: string;
42
- readonly limit: number;
43
- }): Promise<readonly ReleaseCatalogRow[]>;
44
- }
45
- interface InsightsEventCursor {
46
- readonly receivedAtMs: number;
47
- readonly id: string;
48
- }
49
- interface InsightsScope {
50
- readonly platform: "ios" | "android";
51
- readonly channel: string;
52
- }
53
- /** Raw event predicates; recovery is attributed to the source bundle. */
54
- type InsightsBundleEventFilter = InsightsScope & ({
55
- readonly type: "RECOVERED";
56
- readonly fromBundleId: string;
57
- } | {
58
- readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UNCHANGED";
59
- readonly toBundleId: string;
60
- });
61
- type InsightsEventFilter = {
62
- readonly kind: "all";
63
- } | {
64
- readonly kind: "installationMovement";
65
- readonly installId: string;
66
- } | ({
67
- readonly kind: "bundle";
68
- } & InsightsBundleEventFilter);
69
- interface InsightsRecordEventInput {
70
- readonly event: BundleEventRow;
71
- }
72
- interface InsightsListEventsInput {
73
- readonly filter: InsightsEventFilter;
74
- readonly sinceMs?: number;
75
- readonly beforeReceivedAtMs: number;
76
- readonly after?: InsightsEventCursor;
77
- readonly limit: number;
78
- }
79
- type InsightsFindLatestEventsInput = {
80
- readonly installId: string;
81
- } | {
82
- readonly userId: string;
83
- readonly afterInstallId?: string;
84
- readonly limit: number;
85
- };
86
- interface InsightsCountLatestEventsInput extends InsightsScope {
87
- readonly sinceMs: number;
88
- /** Optional OR of one or two fixed predicates; count a matching event once. */
89
- readonly bundle?: readonly {
90
- readonly field: "from_bundle_id" | "to_bundle_id";
91
- readonly value: string;
92
- readonly types: readonly BundleEventRow["type"][];
93
- }[];
94
- }
95
- interface InsightsCountEventsInput {
96
- readonly filter: InsightsBundleEventFilter;
97
- readonly sinceMs: number;
98
- readonly beforeReceivedAtMs: number;
99
- }
100
- interface ReleaseReference {
101
- readonly releaseId: string;
102
- readonly platform: "ios" | "android";
103
- readonly channel: string;
104
- }
105
- interface InsightsTimeRange {
106
- /** Inclusive UTC Unix timestamp in milliseconds. */
107
- readonly start: number;
108
- /** Exclusive UTC Unix timestamp in milliseconds. */
109
- readonly end: number;
110
- }
111
- type InsightsCoverage = {
112
- readonly kind: "complete";
113
- readonly sinceMs: number;
114
- } | {
115
- readonly kind: "partial";
116
- readonly sinceMs: number | null;
117
- };
118
- interface ReleaseActivityMetrics {
119
- readonly downloads: number;
120
- readonly launches: number;
121
- readonly failedLaunches: number;
122
- /** Omitted for lifetime-only bundle-row reads. */
123
- readonly uniqueUsers?: number;
124
- /** Daily points, present only for period reads. */
125
- readonly series?: readonly {
126
- readonly startMs: number;
127
- readonly launches: number;
128
- readonly failedLaunches: number;
129
- }[];
130
- }
131
- type InsightsGetReleaseActivityInput = {
132
- readonly releases: readonly ReleaseReference[];
133
- readonly timeRange?: InsightsTimeRange;
134
- readonly scope?: never;
135
- } | {
136
- readonly scope: InsightsScope;
137
- readonly timeRange: InsightsTimeRange;
138
- readonly releases?: never;
139
- };
140
- interface InsightsGetReleaseActivityResult {
141
- readonly coverage: InsightsCoverage;
142
- readonly data: readonly {
143
- readonly release?: ReleaseReference;
144
- readonly scope?: InsightsScope;
145
- readonly metrics: ReleaseActivityMetrics;
146
- }[];
147
- readonly measuredAtMs: number;
148
- }
149
- interface InsightsGetAppUsageInput {
150
- readonly channel: string;
151
- readonly platform: "all" | "ios" | "android";
152
- readonly appVersion?: string;
153
- readonly timeRange: InsightsTimeRange;
154
- readonly intervalMs: number;
155
- }
156
- interface InsightsGetAppUsageResult {
157
- readonly coverage: InsightsCoverage;
158
- readonly activeInstallations: number;
159
- readonly points: readonly {
160
- readonly startMs: number;
161
- readonly installations: number;
162
- }[];
163
- readonly appVersions: readonly string[];
164
- readonly versions: readonly {
165
- readonly name: string;
166
- readonly installations: number;
167
- }[];
168
- readonly platforms: readonly {
169
- readonly name: string;
170
- readonly installations: number;
171
- }[];
172
- readonly bundleDistribution: readonly {
173
- readonly appVersion: string;
174
- readonly platform: "ios" | "android";
175
- readonly releaseId: string | null;
176
- readonly installations: number;
177
- }[];
178
- readonly measuredAtMs: number;
179
- }
180
- interface InsightsModel {
181
- /**
182
- * Persist the immutable event once. A private latest-event index, if used,
183
- * advances atomically for a greater (received_at_ms, id). Duplicate event
184
- * IDs are complete no-ops.
185
- * Retry the identical prepared input after an ambiguous commit outcome.
186
- */
187
- recordEvent(input: InsightsRecordEventInput): Promise<void>;
188
- /**
189
- * Descending (received_at_ms, id), in [sinceMs ?? 0, beforeReceivedAtMs).
190
- * Apply filters and the exclusive cursor before limit (1..101). Return the
191
- * complete matching prefix; native continuation pages must not truncate it.
192
- */
193
- listEvents(input: InsightsListEventsInput): Promise<readonly BundleEventRow[]>;
194
- /**
195
- * Choose each installation's greatest (received_at_ms, id) before filtering.
196
- * Exact installation lookup returns zero or one canonical event. User lookup
197
- * returns current membership ordered by UTF-8 installation ID, exclusive
198
- * afterInstallId and limit 1..101. Check lagging index candidates against
199
- * canonical state; newly indexed associations may temporarily be absent.
200
- */
201
- findLatestEvents(input: InsightsFindLatestEventsInput): Promise<readonly BundleEventRow[]>;
202
- /** Count latest events once per installation, then apply the supplied predicates. */
203
- countLatestEvents(input: InsightsCountLatestEventsInput): Promise<number>;
204
- /** Count accepted reports in [sinceMs, beforeReceivedAtMs), across all pages. */
205
- countEvents(input: InsightsCountEventsInput): Promise<number>;
206
- /** Read maintained release/scope summaries without scanning raw events. */
207
- getReleaseActivity(input: InsightsGetReleaseActivityInput): Promise<InsightsGetReleaseActivityResult>;
208
- /** Read maintained App usage summaries and latest-report distribution. */
209
- getAppUsage(input: InsightsGetAppUsageInput): Promise<InsightsGetAppUsageResult>;
210
- }
211
- interface ApiKeyModel {
212
- create(row: ApiKeyRow): Promise<"created" | "existing">;
213
- findByHash(hash: string): Promise<ApiKeyRow | null>;
214
- list(): Promise<readonly ApiKeyRow[]>;
215
- revoke(input: {
216
- readonly id: string;
217
- readonly revokedAtMs: number;
218
- }): Promise<ApiKeyRow | null>;
219
- }
220
- interface ChannelInsertInput {
221
- readonly row: ChannelRow;
222
- readonly onConflict: "returnExisting";
223
- }
224
- interface ChannelInsertResult {
225
- readonly row: ChannelRow;
226
- readonly inserted: boolean;
227
- }
228
- interface ChannelDeleteInput {
229
- readonly id: string;
230
- }
231
- type ChannelDeleteResult = {
232
- readonly deleted: true;
233
- } | {
234
- readonly deleted: false;
235
- readonly reason: "not_found" | "not_empty";
236
- };
237
- interface ChannelModel {
238
- insert(input: ChannelInsertInput): Promise<ChannelInsertResult>;
239
- list(input: {}): Promise<{
240
- readonly channels: readonly ChannelRow[];
241
- }>;
242
- delete(input: ChannelDeleteInput): Promise<ChannelDeleteResult>;
243
- }
244
- type DatabaseChange = {
245
- readonly model: "bundles";
246
- readonly operation: "insert";
247
- readonly row: BundleRow;
248
- } | {
249
- readonly model: "bundles";
250
- readonly operation: "update";
251
- readonly where: {
252
- readonly id: string;
253
- };
254
- readonly update: BundleRowUpdate;
255
- } | {
256
- readonly model: "bundles";
257
- readonly operation: "delete";
258
- readonly where: {
259
- readonly id: string;
260
- };
261
- } | {
262
- readonly model: "bundlePatches";
263
- readonly operation: "insert";
264
- readonly row: BundlePatchRow;
265
- } | {
266
- readonly model: "bundlePatches";
267
- readonly operation: "delete";
268
- readonly where: {
269
- readonly bundleId: string;
270
- };
271
- } | {
272
- readonly model: "releases";
273
- readonly operation: "insert";
274
- readonly row: ReleaseRow;
275
- } | {
276
- readonly model: "releases";
277
- readonly operation: "update";
278
- readonly where: {
279
- readonly id: string;
280
- };
281
- readonly update: ReleaseRowUpdate;
282
- } | {
283
- readonly model: "releases";
284
- readonly operation: "delete";
285
- readonly where: {
286
- readonly id: string;
287
- };
288
- } | {
289
- readonly model: "releaseCatalogs";
290
- readonly operation: "put";
291
- readonly row: ReleaseCatalogRow;
292
- } | {
293
- readonly model: "channels";
294
- readonly operation: "insert";
295
- readonly row: ChannelRow;
296
- readonly onConflict: "ignore";
297
- } | {
298
- readonly model: "channels";
299
- readonly operation: "delete";
300
- readonly where: {
301
- readonly id: string;
302
- };
303
- } | {
304
- readonly model: "apiKeys";
305
- readonly operation: "insert";
306
- readonly row: ApiKeyRow;
307
- readonly onConflict: "ignore";
308
- } | {
309
- readonly model: "apiKeys";
310
- readonly operation: "update";
311
- readonly where: {
312
- readonly id: string;
313
- };
314
- readonly update: {
315
- readonly revokedAtMs: number;
316
- };
317
- };
318
- type DatabaseCommitExpectation = {
319
- readonly model: "releases";
320
- readonly id: string;
321
- readonly revision: number | null;
322
- } | {
323
- readonly model: "releaseCatalogs";
324
- readonly scopeKey: string;
325
- readonly generation: number | null;
326
- };
327
- interface DatabaseCommit {
328
- readonly changes: readonly DatabaseChange[];
329
- readonly expectations?: readonly DatabaseCommitExpectation[];
330
- }
331
- type BundleRepositoryBundleChange = Extract<DatabaseChange, {
332
- readonly model: "bundles" | "bundlePatches";
333
- }>;
334
- type BundleRepositoryChannelChange = Extract<DatabaseChange, {
335
- readonly model: "channels";
336
- }>;
337
- type BundleRepositoryChange = BundleRepositoryBundleChange | BundleRepositoryChannelChange;
338
- /**
339
- * The atomic envelopes supported by a bundle-management repository.
340
- *
341
- * Bundle and patch changes form one aggregate commit. Channel lifecycle is a
342
- * separate single-change commit because the standalone HTTP boundary cannot
343
- * atomically combine a Channel write with a bundle aggregate write.
344
- */
345
- type BundleRepositoryCommit = {
346
- readonly changes: readonly BundleRepositoryBundleChange[];
347
- } | {
348
- readonly changes: readonly [BundleRepositoryChannelChange];
349
- };
350
- type DatabaseCommitResult = {
351
- readonly committed: true;
352
- } | {
353
- readonly committed: false;
354
- readonly conflict: {
355
- readonly changeIndex: number;
356
- readonly reason: "not_found" | "referenced";
357
- } | {
358
- readonly changeIndex: -1;
359
- readonly reason: "version_conflict";
360
- readonly model: "releases" | "releaseCatalogs";
361
- readonly key: string;
362
- readonly expectedVersion: number | null;
363
- readonly actualVersion: number | null;
364
- };
365
- };
366
- interface DatabaseModels {
367
- readonly bundles: BundleModel;
368
- readonly bundlePatches: BundlePatchModel;
369
- readonly releases: ReleaseModel;
370
- readonly releaseCatalogs: ReleaseCatalogModel;
371
- readonly channels: ChannelModel;
372
- readonly insights: InsightsModel;
373
- readonly apiKeys: ApiKeyModel;
374
- }
375
- interface BundleRepository {
376
- readonly name: string;
377
- readonly models: Pick<DatabaseModels, "bundles" | "bundlePatches" | "channels" | "releaseCatalogs" | "releases">;
378
- commit(input: DatabaseCommit): Promise<DatabaseCommitResult>;
379
- dispose?: () => Promise<void>;
380
- }
381
- interface DatabasePlugin {
382
- readonly name: string;
383
- readonly models: DatabaseModels;
384
- commit(input: DatabaseCommit): Promise<DatabaseCommitResult>;
385
- dispose?: () => Promise<void>;
386
- }
387
- //#endregion
388
- export { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference };