@odla-ai/chapter 0.33.1 → 0.33.2
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/README.md +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js.map +1 -1
- package/dist/worker/index.cjs +20 -4
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.js +20 -4
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
- package/runbooks/greenfield.md +4 -0
package/dist/index.d.cts
CHANGED
|
@@ -300,10 +300,14 @@ interface ChapterPolicy {
|
|
|
300
300
|
type ChapterMode = "chapter" | "hub";
|
|
301
301
|
/** One odla-db transaction op — the wire shape both the real admin client and a
|
|
302
302
|
* test double (`FakeDb`) accept. Built as a plain object, never via a `tx` proxy. */
|
|
303
|
-
interface DbOp {
|
|
303
|
+
interface DbOp<Id extends string | {
|
|
304
|
+
ns: string;
|
|
305
|
+
attr: string;
|
|
306
|
+
value: string | number | boolean;
|
|
307
|
+
} = string> {
|
|
304
308
|
t: "update" | "merge" | "retract" | "delete";
|
|
305
309
|
ns: string;
|
|
306
|
-
id:
|
|
310
|
+
id: Id;
|
|
307
311
|
attrs?: Record<string, unknown>;
|
|
308
312
|
}
|
|
309
313
|
/** The structural view of the odla-db admin client the worker builds and the
|
|
@@ -320,7 +324,11 @@ interface ChapterDb {
|
|
|
320
324
|
}): Promise<{
|
|
321
325
|
count?: number;
|
|
322
326
|
}>;
|
|
323
|
-
transact(ops: DbOp
|
|
327
|
+
transact(ops: DbOp<string | {
|
|
328
|
+
ns: string;
|
|
329
|
+
attr: string;
|
|
330
|
+
value: string | number | boolean;
|
|
331
|
+
}>[], opts?: {
|
|
324
332
|
mutationId?: string;
|
|
325
333
|
}): Promise<{
|
|
326
334
|
txId: number;
|
|
@@ -2026,7 +2034,7 @@ interface SignupControlReceipt {
|
|
|
2026
2034
|
acknowledgedAt: number;
|
|
2027
2035
|
}
|
|
2028
2036
|
/** Stable reason codes returned when a follower refuses desired state. */
|
|
2029
|
-
type SignupControlRejection = "invalid_document" | "invalid_digest" | "wrong_source" | "wrong_target" | "wrong_environment" | "wrong_stripe_mode" | "stale_revision" | "conflicting_revision";
|
|
2037
|
+
type SignupControlRejection = "invalid_document" | "invalid_digest" | "wrong_source" | "wrong_target" | "wrong_environment" | "wrong_stripe_mode" | "stale_revision" | "conflicting_revision" | "materialization_failed";
|
|
2030
2038
|
/** Normalized document result returned by the package validator. */
|
|
2031
2039
|
type SignupControlValidation = {
|
|
2032
2040
|
ok: true;
|
package/dist/index.d.ts
CHANGED
|
@@ -300,10 +300,14 @@ interface ChapterPolicy {
|
|
|
300
300
|
type ChapterMode = "chapter" | "hub";
|
|
301
301
|
/** One odla-db transaction op — the wire shape both the real admin client and a
|
|
302
302
|
* test double (`FakeDb`) accept. Built as a plain object, never via a `tx` proxy. */
|
|
303
|
-
interface DbOp {
|
|
303
|
+
interface DbOp<Id extends string | {
|
|
304
|
+
ns: string;
|
|
305
|
+
attr: string;
|
|
306
|
+
value: string | number | boolean;
|
|
307
|
+
} = string> {
|
|
304
308
|
t: "update" | "merge" | "retract" | "delete";
|
|
305
309
|
ns: string;
|
|
306
|
-
id:
|
|
310
|
+
id: Id;
|
|
307
311
|
attrs?: Record<string, unknown>;
|
|
308
312
|
}
|
|
309
313
|
/** The structural view of the odla-db admin client the worker builds and the
|
|
@@ -320,7 +324,11 @@ interface ChapterDb {
|
|
|
320
324
|
}): Promise<{
|
|
321
325
|
count?: number;
|
|
322
326
|
}>;
|
|
323
|
-
transact(ops: DbOp
|
|
327
|
+
transact(ops: DbOp<string | {
|
|
328
|
+
ns: string;
|
|
329
|
+
attr: string;
|
|
330
|
+
value: string | number | boolean;
|
|
331
|
+
}>[], opts?: {
|
|
324
332
|
mutationId?: string;
|
|
325
333
|
}): Promise<{
|
|
326
334
|
txId: number;
|
|
@@ -2026,7 +2034,7 @@ interface SignupControlReceipt {
|
|
|
2026
2034
|
acknowledgedAt: number;
|
|
2027
2035
|
}
|
|
2028
2036
|
/** Stable reason codes returned when a follower refuses desired state. */
|
|
2029
|
-
type SignupControlRejection = "invalid_document" | "invalid_digest" | "wrong_source" | "wrong_target" | "wrong_environment" | "wrong_stripe_mode" | "stale_revision" | "conflicting_revision";
|
|
2037
|
+
type SignupControlRejection = "invalid_document" | "invalid_digest" | "wrong_source" | "wrong_target" | "wrong_environment" | "wrong_stripe_mode" | "stale_revision" | "conflicting_revision" | "materialization_failed";
|
|
2030
2038
|
/** Normalized document result returned by the package validator. */
|
|
2031
2039
|
type SignupControlValidation = {
|
|
2032
2040
|
ok: true;
|