@hachej/boring-core 0.1.72 → 0.1.74
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/{PostgresModelBudgetStore-DWwh7ElQ.d.ts → PostgresModelBudgetStore-D5GHv0fE.d.ts}
RENAMED
|
@@ -225,6 +225,7 @@ declare class PostgresMeteringStore {
|
|
|
225
225
|
private sumActiveReservations;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
type BudgetDatabase = PostgresJsDatabase<Record<string, unknown>>;
|
|
228
229
|
type BudgetReservationStatus = 'active' | 'settled' | 'released' | 'expired';
|
|
229
230
|
type BudgetReservationScope = 'model' | 'user';
|
|
230
231
|
declare class ModelBudgetExceededError extends Error {
|
|
@@ -295,7 +296,7 @@ interface FinishReservationInput {
|
|
|
295
296
|
declare class PostgresBudgetReservationStore {
|
|
296
297
|
private db;
|
|
297
298
|
private readonly options;
|
|
298
|
-
constructor(db:
|
|
299
|
+
constructor(db: BudgetDatabase, options?: {
|
|
299
300
|
eligibleLegacySources?: readonly string[];
|
|
300
301
|
});
|
|
301
302
|
static monthPeriodUtc(now?: Date): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { U as UserStore, W as WorkspaceStore } from '../../types-Dm11Zm56.js';
|
|
2
2
|
export { D as Database, c as createDatabase } from '../../types-Dm11Zm56.js';
|
|
3
|
-
export { B as BudgetReservationAdmission, a as BudgetReservationAdmissionInput, b as BudgetReservationScope, F as FinishBudgetReservationInput, c as FinishReservationInput, G as GrantOnceInput, I as InsufficientCreditError, M as MeteringBalance, d as ModelBudgetExceededError, P as PostgresBudgetReservationStore, e as PostgresMeteringStore, f as PostgresModelBudgetStore, R as RecordUsageInput, g as RecordUsageResult, h as ReservationFinalStatus, i as ReserveBudgetInput, j as ReserveBudgetResult, k as ReserveInput, l as ReserveResult, m as RunMigrationsOptions, U as UserBudgetExceededError, r as runMigrations } from '../../PostgresModelBudgetStore-
|
|
3
|
+
export { B as BudgetReservationAdmission, a as BudgetReservationAdmissionInput, b as BudgetReservationScope, F as FinishBudgetReservationInput, c as FinishReservationInput, G as GrantOnceInput, I as InsufficientCreditError, M as MeteringBalance, d as ModelBudgetExceededError, P as PostgresBudgetReservationStore, e as PostgresMeteringStore, f as PostgresModelBudgetStore, R as RecordUsageInput, g as RecordUsageResult, h as ReservationFinalStatus, i as ReserveBudgetInput, j as ReserveBudgetResult, k as ReserveInput, l as ReserveResult, m as RunMigrationsOptions, U as UserBudgetExceededError, r as runMigrations } from '../../PostgresModelBudgetStore-D5GHv0fE.js';
|
|
4
4
|
import { U as User, b as Workspace, E as ERROR_CODES, M as MemberRole, W as WorkspaceMember, c as WorkspaceInvite, d as WorkspaceRuntime, e as WorkspaceRuntimeResourceSelector, f as WorkspaceRuntimeResource, g as WorkspaceRuntimeResourceInput } from '../../types-DDnayJjI.js';
|
|
5
5
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
6
6
|
import 'postgres';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { IncomingMessage } from 'node:http';
|
|
|
9
9
|
import { W as WorkspaceStore, C as CreateCoreAppOptions, D as Database, U as UserStore, a as WorkspaceProvisioner } from '../types-Dm11Zm56.js';
|
|
10
10
|
export { A as AuthProvider, b as CapabilitiesContributor, P as ProvisionContext, d as ProvisionResult, c as createDatabase } from '../types-Dm11Zm56.js';
|
|
11
11
|
import postgres from 'postgres';
|
|
12
|
-
import { e as PostgresMeteringStore, C as CreditLedgerEntry } from '../PostgresModelBudgetStore-
|
|
13
|
-
export { B as BudgetReservationAdmission, a as BudgetReservationAdmissionInput, b as BudgetReservationScope, F as FinishBudgetReservationInput, c as FinishReservationInput, G as GrantOnceInput, I as InsufficientCreditError, M as MeteringBalance, d as ModelBudgetExceededError, P as PostgresBudgetReservationStore, f as PostgresModelBudgetStore, R as RecordUsageInput, g as RecordUsageResult, h as ReservationFinalStatus, i as ReserveBudgetInput, j as ReserveBudgetResult, k as ReserveInput, l as ReserveResult, U as UserBudgetExceededError, r as runMigrations } from '../PostgresModelBudgetStore-
|
|
12
|
+
import { e as PostgresMeteringStore, C as CreditLedgerEntry } from '../PostgresModelBudgetStore-D5GHv0fE.js';
|
|
13
|
+
export { B as BudgetReservationAdmission, a as BudgetReservationAdmissionInput, b as BudgetReservationScope, F as FinishBudgetReservationInput, c as FinishReservationInput, G as GrantOnceInput, I as InsufficientCreditError, M as MeteringBalance, d as ModelBudgetExceededError, P as PostgresBudgetReservationStore, f as PostgresModelBudgetStore, R as RecordUsageInput, g as RecordUsageResult, h as ReservationFinalStatus, i as ReserveBudgetInput, j as ReserveBudgetResult, k as ReserveInput, l as ReserveResult, U as UserBudgetExceededError, r as runMigrations } from '../PostgresModelBudgetStore-D5GHv0fE.js';
|
|
14
14
|
import { T as TelemetrySink } from '../telemetry-DR18MeI0.js';
|
|
15
15
|
import { AgentMeteringSink } from '@hachej/boring-agent/server';
|
|
16
16
|
import 'better-auth';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.74",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Foundation package for boring-ui-v2 apps: DB, auth, config, HTTP app factory, and frontend app shell.",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"react-router-dom": "^7.18.0",
|
|
80
80
|
"smol-toml": "^1.7.0",
|
|
81
81
|
"zod": "^3.25.76",
|
|
82
|
-
"@hachej/boring-agent": "0.1.
|
|
83
|
-
"@hachej/boring-
|
|
84
|
-
"@hachej/boring-
|
|
82
|
+
"@hachej/boring-agent": "0.1.74",
|
|
83
|
+
"@hachej/boring-workspace": "0.1.74",
|
|
84
|
+
"@hachej/boring-ui-kit": "0.1.74"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@testing-library/jest-dom": "^6.9.1",
|