@econ-v1/domain 6.7.0 → 6.10.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/errors/index.d.ts +96 -25
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/events/index.d.ts +127 -20
- package/dist/events/index.d.ts.map +1 -1
- package/dist/index.d.ts +250 -47
- package/dist/index.d.ts.map +1 -1
- package/dist/models/agent.d.ts +25 -4
- package/dist/models/agent.d.ts.map +1 -1
- package/dist/models/app-data.d.ts +84 -0
- package/dist/models/app-data.d.ts.map +1 -0
- package/dist/models/conversation.d.ts +12 -2
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/delegation.d.ts +12 -3
- package/dist/models/delegation.d.ts.map +1 -1
- package/dist/models/device-boot-state.d.ts +12 -0
- package/dist/models/device-boot-state.d.ts.map +1 -0
- package/dist/models/device-identity.d.ts +11 -3
- package/dist/models/device-identity.d.ts.map +1 -1
- package/dist/models/graph.d.ts +26 -3
- package/dist/models/graph.d.ts.map +1 -1
- package/dist/models/index.d.ts +82 -14
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/json.d.ts +5 -5
- package/dist/models/json.d.ts.map +1 -1
- package/dist/models/l402.d.ts +4 -5
- package/dist/models/l402.d.ts.map +1 -1
- package/dist/models/live-query-definition.d.ts +15 -16
- package/dist/models/live-query-definition.d.ts.map +1 -1
- package/dist/models/node-app-memory.d.ts +107 -0
- package/dist/models/node-app-memory.d.ts.map +1 -0
- package/dist/models/outbox-intent.d.ts +3 -3
- package/dist/models/outbox-intent.d.ts.map +1 -1
- package/dist/models/outbox.d.ts +67 -15
- package/dist/models/outbox.d.ts.map +1 -1
- package/dist/models/owner-views.d.ts +28 -28
- package/dist/models/owner-views.d.ts.map +1 -1
- package/dist/models/payment.d.ts +28 -9
- package/dist/models/payment.d.ts.map +1 -1
- package/dist/models/query-diff.d.ts +2 -2
- package/dist/models/query-diff.d.ts.map +1 -1
- package/dist/models/release-manifest.d.ts +32 -47
- package/dist/models/release-manifest.d.ts.map +1 -1
- package/dist/models/repository-write.d.ts +3 -3
- package/dist/models/repository-write.d.ts.map +1 -1
- package/dist/models/revisioned-commands.d.ts +66 -13
- package/dist/models/revisioned-commands.d.ts.map +1 -1
- package/dist/models/revisioned.d.ts +50 -10
- package/dist/models/revisioned.d.ts.map +1 -1
- package/dist/models/settings.d.ts +2 -2
- package/dist/models/settings.d.ts.map +1 -1
- package/dist/models/sync.d.ts +18 -18
- package/dist/models/sync.d.ts.map +1 -1
- package/dist/models/wallet.d.ts +16 -16
- package/dist/models/wallet.d.ts.map +1 -1
- package/dist/queries/certificate-trust.d.ts +13 -0
- package/dist/queries/certificate-trust.d.ts.map +1 -0
- package/dist/queries/conversations.d.ts +38 -7
- package/dist/queries/conversations.d.ts.map +1 -1
- package/dist/queries/discovery.d.ts +10 -10
- package/dist/queries/discovery.d.ts.map +1 -1
- package/dist/queries/notifications.d.ts +24 -4
- package/dist/queries/notifications.d.ts.map +1 -1
- package/dist/queries/onboarding-flow.d.ts +25 -0
- package/dist/queries/onboarding-flow.d.ts.map +1 -0
- package/dist/queries/onboarding-lcd-screen.d.ts +56 -0
- package/dist/queries/onboarding-lcd-screen.d.ts.map +1 -0
- package/dist/queries/onboarding-status.d.ts +10 -10
- package/dist/queries/onboarding-status.d.ts.map +1 -1
- package/dist/queries/revisioned.d.ts +47 -13
- package/dist/queries/revisioned.d.ts.map +1 -1
- package/dist/queries/wallet.d.ts +40 -10
- package/dist/queries/wallet.d.ts.map +1 -1
- package/dist/services/abort-signal.d.ts +54 -0
- package/dist/services/abort-signal.d.ts.map +1 -0
- package/dist/services/certificate-trust-service.d.ts +42 -0
- package/dist/services/certificate-trust-service.d.ts.map +1 -0
- package/dist/services/conversation-service.d.ts +103 -15
- package/dist/services/conversation-service.d.ts.map +1 -1
- package/dist/services/conversation-sync.d.ts +9 -5
- package/dist/services/conversation-sync.d.ts.map +1 -1
- package/dist/services/device-boot-state-service.d.ts +17 -0
- package/dist/services/device-boot-state-service.d.ts.map +1 -0
- package/dist/services/device-cleanup-service.d.ts +47 -0
- package/dist/services/device-cleanup-service.d.ts.map +1 -0
- package/dist/services/discovery-probe-service.d.ts +37 -46
- package/dist/services/discovery-probe-service.d.ts.map +1 -1
- package/dist/services/gossip-service.d.ts +28 -13
- package/dist/services/gossip-service.d.ts.map +1 -1
- package/dist/services/invite-redemption-service.d.ts +43 -0
- package/dist/services/invite-redemption-service.d.ts.map +1 -0
- package/dist/services/lan-candidate-refresh-service.d.ts +22 -7
- package/dist/services/lan-candidate-refresh-service.d.ts.map +1 -1
- package/dist/services/lcd-decision-service.d.ts +58 -0
- package/dist/services/lcd-decision-service.d.ts.map +1 -0
- package/dist/services/onboarding-checkpoint-store.d.ts +54 -0
- package/dist/services/onboarding-checkpoint-store.d.ts.map +1 -0
- package/dist/services/onboarding-flow-service.d.ts +180 -0
- package/dist/services/onboarding-flow-service.d.ts.map +1 -0
- package/dist/services/onboarding-status-service.d.ts +21 -38
- package/dist/services/onboarding-status-service.d.ts.map +1 -1
- package/dist/services/outbox-service.d.ts +105 -29
- package/dist/services/outbox-service.d.ts.map +1 -1
- package/dist/services/owner-claim-service.d.ts +187 -0
- package/dist/services/owner-claim-service.d.ts.map +1 -0
- package/dist/services/owner-view-refresh-service.d.ts +40 -0
- package/dist/services/owner-view-refresh-service.d.ts.map +1 -0
- package/dist/services/owner-view-service.d.ts +49 -4
- package/dist/services/owner-view-service.d.ts.map +1 -1
- package/dist/services/peer-directory-service.d.ts +53 -17
- package/dist/services/peer-directory-service.d.ts.map +1 -1
- package/dist/services/release-manifest-verifier.d.ts +18 -20
- package/dist/services/release-manifest-verifier.d.ts.map +1 -1
- package/dist/services/revisioned-domain-service.d.ts +50 -17
- package/dist/services/revisioned-domain-service.d.ts.map +1 -1
- package/dist/services/runtime-globals.d.ts +39 -0
- package/dist/services/runtime-globals.d.ts.map +1 -0
- package/dist/services/session-service.d.ts +23 -3
- package/dist/services/session-service.d.ts.map +1 -1
- package/dist/services/sync/authoritative-mirror.d.ts +88 -15
- package/dist/services/sync/authoritative-mirror.d.ts.map +1 -1
- package/dist/services/sync/index.d.ts +17 -5
- package/dist/services/sync/index.d.ts.map +1 -1
- package/dist/services/sync/log-sync.d.ts +42 -8
- package/dist/services/sync/log-sync.d.ts.map +1 -1
- package/dist/services/sync/revision-merge.d.ts +80 -13
- package/dist/services/sync/revision-merge.d.ts.map +1 -1
- package/dist/services/sync/strategy.d.ts +11 -1
- package/dist/services/sync/strategy.d.ts.map +1 -1
- package/dist/services/transport-manager.d.ts +84 -29
- package/dist/services/transport-manager.d.ts.map +1 -1
- package/dist/services/wallet-mirror-service.d.ts +81 -18
- package/dist/services/wallet-mirror-service.d.ts.map +1 -1
- package/dist/services/wifi-provisioning-service.d.ts +146 -0
- package/dist/services/wifi-provisioning-service.d.ts.map +1 -0
- package/package.json +18 -12
- package/src/errors/index.js +126 -0
- package/src/events/index.js +124 -0
- package/src/index.js +566 -0
- package/src/models/agent.js +43 -0
- package/src/models/app-data.js +122 -0
- package/src/models/conversation.js +36 -0
- package/{dist → src}/models/delegation.js +18 -1
- package/src/models/device-boot-state.js +3 -0
- package/{dist → src}/models/device-identity.js +18 -2
- package/{dist → src}/models/graph.js +30 -3
- package/src/models/index.js +175 -0
- package/src/models/json.js +18 -0
- package/src/models/l402.js +9 -0
- package/src/models/live-query-definition.js +30 -0
- package/src/models/node-app-memory.js +130 -0
- package/src/models/outbox-intent.js +12 -0
- package/{dist → src}/models/outbox.js +102 -3
- package/src/models/owner-views.js +59 -0
- package/src/models/payment.js +24 -0
- package/src/models/query-diff.js +7 -0
- package/src/models/release-manifest.js +160 -0
- package/src/models/repository-write.js +10 -0
- package/src/models/revisioned-commands.js +92 -0
- package/src/models/revisioned.js +41 -0
- package/src/models/settings.js +16 -0
- package/src/models/sync.js +44 -0
- package/src/models/wallet.js +40 -0
- package/src/queries/certificate-trust.js +31 -0
- package/{dist → src}/queries/conversations.js +54 -3
- package/src/queries/discovery.js +34 -0
- package/{dist → src}/queries/notifications.js +25 -2
- package/src/queries/onboarding-flow.js +48 -0
- package/src/queries/onboarding-lcd-screen.js +100 -0
- package/src/queries/onboarding-status.js +34 -0
- package/src/queries/revisioned.js +128 -0
- package/{dist → src}/queries/wallet.js +35 -1
- package/src/services/abort-signal.js +69 -0
- package/src/services/certificate-trust-service.js +119 -0
- package/{dist → src}/services/conversation-service.js +108 -1
- package/src/services/conversation-sync.js +28 -0
- package/src/services/device-boot-state-service.js +45 -0
- package/src/services/device-cleanup-service.js +112 -0
- package/src/services/discovery-probe-service.js +196 -0
- package/{dist → src}/services/gossip-service.js +54 -4
- package/src/services/invite-redemption-service.js +64 -0
- package/src/services/lan-candidate-refresh-service.js +164 -0
- package/src/services/lcd-decision-service.js +93 -0
- package/src/services/onboarding-checkpoint-store.js +155 -0
- package/src/services/onboarding-flow-service.js +1096 -0
- package/src/services/onboarding-status-service.js +64 -0
- package/{dist → src}/services/outbox-service.js +132 -1
- package/src/services/owner-claim-service.js +347 -0
- package/src/services/owner-view-refresh-service.js +208 -0
- package/src/services/owner-view-service.js +87 -0
- package/{dist → src}/services/peer-directory-service.js +72 -3
- package/src/services/release-manifest-verifier.js +108 -0
- package/{dist → src}/services/revisioned-domain-service.js +189 -9
- package/src/services/runtime-globals.js +174 -0
- package/src/services/session-service.js +50 -0
- package/{dist → src}/services/sync/authoritative-mirror.js +90 -1
- package/src/services/sync/index.js +67 -0
- package/src/services/sync/log-sync.js +60 -0
- package/src/services/sync/revision-merge.js +119 -0
- package/src/services/sync/strategy.js +44 -0
- package/src/services/transport-manager.js +478 -0
- package/{dist → src}/services/wallet-mirror-service.js +226 -6
- package/src/services/wifi-provisioning-service.js +278 -0
- package/dist/errors/index.js +0 -45
- package/dist/errors/index.js.map +0 -1
- package/dist/events/index.js +0 -17
- package/dist/events/index.js.map +0 -1
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/models/agent.js +0 -17
- package/dist/models/agent.js.map +0 -1
- package/dist/models/conversation.js +0 -2
- package/dist/models/conversation.js.map +0 -1
- package/dist/models/delegation.js.map +0 -1
- package/dist/models/device-identity.js.map +0 -1
- package/dist/models/graph.js.map +0 -1
- package/dist/models/index.js +0 -8
- package/dist/models/index.js.map +0 -1
- package/dist/models/json.js +0 -2
- package/dist/models/json.js.map +0 -1
- package/dist/models/l402.js +0 -2
- package/dist/models/l402.js.map +0 -1
- package/dist/models/live-query-definition.js +0 -2
- package/dist/models/live-query-definition.js.map +0 -1
- package/dist/models/outbox-intent.js +0 -2
- package/dist/models/outbox-intent.js.map +0 -1
- package/dist/models/outbox.js.map +0 -1
- package/dist/models/owner-views.js +0 -7
- package/dist/models/owner-views.js.map +0 -1
- package/dist/models/payment.js +0 -3
- package/dist/models/payment.js.map +0 -1
- package/dist/models/query-diff.js +0 -2
- package/dist/models/query-diff.js.map +0 -1
- package/dist/models/release-manifest.js +0 -147
- package/dist/models/release-manifest.js.map +0 -1
- package/dist/models/repository-write.js +0 -2
- package/dist/models/repository-write.js.map +0 -1
- package/dist/models/revisioned-commands.js +0 -35
- package/dist/models/revisioned-commands.js.map +0 -1
- package/dist/models/revisioned.js +0 -2
- package/dist/models/revisioned.js.map +0 -1
- package/dist/models/settings.js +0 -2
- package/dist/models/settings.js.map +0 -1
- package/dist/models/sync.js +0 -2
- package/dist/models/sync.js.map +0 -1
- package/dist/models/wallet.js +0 -2
- package/dist/models/wallet.js.map +0 -1
- package/dist/queries/conversations.js.map +0 -1
- package/dist/queries/discovery.js +0 -27
- package/dist/queries/discovery.js.map +0 -1
- package/dist/queries/notifications.js.map +0 -1
- package/dist/queries/onboarding-status.js +0 -27
- package/dist/queries/onboarding-status.js.map +0 -1
- package/dist/queries/revisioned.js +0 -58
- package/dist/queries/revisioned.js.map +0 -1
- package/dist/queries/wallet.js.map +0 -1
- package/dist/services/conversation-service.js.map +0 -1
- package/dist/services/conversation-sync.js +0 -9
- package/dist/services/conversation-sync.js.map +0 -1
- package/dist/services/discovery-probe-service.js +0 -129
- package/dist/services/discovery-probe-service.js.map +0 -1
- package/dist/services/gossip-service.js.map +0 -1
- package/dist/services/lan-candidate-refresh-service.js +0 -79
- package/dist/services/lan-candidate-refresh-service.js.map +0 -1
- package/dist/services/onboarding-status-service.js +0 -32
- package/dist/services/onboarding-status-service.js.map +0 -1
- package/dist/services/outbox-service.js.map +0 -1
- package/dist/services/owner-view-service.js +0 -21
- package/dist/services/owner-view-service.js.map +0 -1
- package/dist/services/peer-directory-service.js.map +0 -1
- package/dist/services/release-manifest-verifier.js +0 -84
- package/dist/services/release-manifest-verifier.js.map +0 -1
- package/dist/services/revisioned-domain-service.js.map +0 -1
- package/dist/services/session-service.js +0 -20
- package/dist/services/session-service.js.map +0 -1
- package/dist/services/sync/authoritative-mirror.js.map +0 -1
- package/dist/services/sync/index.js +0 -4
- package/dist/services/sync/index.js.map +0 -1
- package/dist/services/sync/log-sync.js +0 -20
- package/dist/services/sync/log-sync.js.map +0 -1
- package/dist/services/sync/revision-merge.js +0 -46
- package/dist/services/sync/revision-merge.js.map +0 -1
- package/dist/services/sync/strategy.js +0 -2
- package/dist/services/sync/strategy.js.map +0 -1
- package/dist/services/transport-manager.js +0 -234
- package/dist/services/transport-manager.js.map +0 -1
- package/dist/services/wallet-mirror-service.js.map +0 -1
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {unknown} value
|
|
3
|
+
* @returns {value is DevicePublicIdentity}
|
|
4
|
+
*/
|
|
5
|
+
export function isDevicePublicIdentity(value: unknown): value is DevicePublicIdentity;
|
|
6
|
+
/**
|
|
7
|
+
* @param {DevicePublicIdentity} identity
|
|
8
|
+
* @returns {Readonly<Record<string, string>>}
|
|
9
|
+
*/
|
|
10
|
+
export function publicIdentityDiagnostic(identity: DevicePublicIdentity): Readonly<Record<string, string>>;
|
|
11
|
+
export type DevicePublicIdentity = import("@econ-v1/ports").DevicePublicIdentity;
|
|
4
12
|
//# sourceMappingURL=device-identity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-identity.d.ts","sourceRoot":"","sources":["../../src/models/device-identity.
|
|
1
|
+
{"version":3,"file":"device-identity.d.ts","sourceRoot":"","sources":["../../src/models/device-identity.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,8CAHW,OAAO,GACL,KAAK,IAAI,oBAAoB,CAoBzC;AACD;;;GAGG;AACH,mDAHW,oBAAoB,GAClB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAS5C;mCArCY,OAAO,gBAAgB,EAAE,oBAAoB"}
|
package/dist/models/graph.d.ts
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("./json.js").JsonObject} JsonObject
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @template TValue
|
|
6
|
+
* @typedef {import("./sync.js").RevisionEntity<TValue>} RevisionEntity
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @typedef {JsonObject & { readonly id: string; readonly label?: string; readonly type: string; }} GraphNode
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {JsonObject & { readonly from: string; readonly id?: string; readonly to: string; }} GraphEdge
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {JsonObject & { readonly edges: readonly GraphEdge[]; readonly name?: string; readonly nodes: readonly GraphNode[]; }} GraphValue
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @typedef {RevisionEntity<GraphValue>} Graph
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @param {unknown} value
|
|
22
|
+
* @returns {GraphValue}
|
|
23
|
+
*/
|
|
24
|
+
export function parseGraphValue(value: unknown): GraphValue;
|
|
25
|
+
export type JsonObject = import("./json.js").JsonObject;
|
|
26
|
+
export type RevisionEntity<TValue> = import("./sync.js").RevisionEntity<TValue>;
|
|
3
27
|
export type GraphNode = JsonObject & {
|
|
4
28
|
readonly id: string;
|
|
5
29
|
readonly label?: string;
|
|
@@ -16,5 +40,4 @@ export type GraphValue = JsonObject & {
|
|
|
16
40
|
readonly nodes: readonly GraphNode[];
|
|
17
41
|
};
|
|
18
42
|
export type Graph = RevisionEntity<GraphValue>;
|
|
19
|
-
export declare function parseGraphValue(value: unknown): GraphValue;
|
|
20
43
|
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/models/graph.
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/models/graph.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;;;GAGG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;;GAGG;AACH,uCAHW,OAAO,GACL,UAAU,CA2BtB;yBA/CY,OAAO,WAAW,EAAE,UAAU;2BAG9B,MAAM,IACN,OAAO,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC;wBAG1C,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CAAE;wBAGrF,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CAAE;yBAGlF,UAAU,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;CAAE;oBAGpH,cAAc,CAAC,UAAU,CAAC"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,18 +1,86 @@
|
|
|
1
|
+
export { parseGraphValue } from "./graph.js";
|
|
2
|
+
export { REVISIONED_DOMAINS } from "./revisioned.js";
|
|
3
|
+
export type JsonObject = import("./json.js").JsonObject;
|
|
4
|
+
export type JsonPrimitive = import("./json.js").JsonPrimitive;
|
|
5
|
+
export type JsonValue = import("./json.js").JsonValue;
|
|
6
|
+
export type LiveQueryDefinition<TParams, TRow> = import("./live-query-definition.js").LiveQueryDefinition<TParams, TRow>;
|
|
7
|
+
export type LegacyOutboxState = import("./outbox.js").LegacyOutboxState;
|
|
8
|
+
export type AppDataChangedEvent = import("./app-data.js").AppDataChangedEvent;
|
|
9
|
+
export type AppDataFreshness = import("./app-data.js").AppDataFreshness;
|
|
10
|
+
export type AppDataManifestRegistration = import("./app-data.js").AppDataManifestRegistration;
|
|
11
|
+
export type AppDataQueryDefinition = import("./app-data.js").AppDataQueryDefinition;
|
|
12
|
+
export type AppDataStreamDefinition = import("./app-data.js").AppDataStreamDefinition;
|
|
13
|
+
export type AppDataSyncResponse = import("./app-data.js").AppDataSyncResponse;
|
|
14
|
+
export type AppDataSyncResult = import("./app-data.js").AppDataSyncResult;
|
|
15
|
+
export type AppDataTransport = import("./app-data.js").AppDataTransport;
|
|
16
|
+
export type CachedAppData = import("./app-data.js").CachedAppData;
|
|
17
|
+
export type OutboxAuthority = import("./outbox.js").OutboxAuthority;
|
|
18
|
+
export type OutboxEntry = import("./outbox.js").OutboxEntry;
|
|
19
|
+
export type OutboxIntent = import("./outbox.js").OutboxIntent;
|
|
20
|
+
export type OutboxIntentInput = import("./outbox.js").OutboxIntentInput;
|
|
21
|
+
export type OutboxIntentOptions = import("./outbox.js").OutboxIntentOptions;
|
|
22
|
+
export type OutboxIntentState = import("./outbox.js").OutboxIntentState;
|
|
23
|
+
export type OutboxLease = import("./outbox.js").OutboxLease;
|
|
24
|
+
export type OutboxState = import("./outbox.js").OutboxState;
|
|
25
|
+
export type QueryDiff<TRow> = import("./query-diff.js").QueryDiff<TRow>;
|
|
26
|
+
export type DomainEvent = import("../events/index.js").DomainEvent;
|
|
27
|
+
export type RepositoryWrite<TEvent extends DomainEvent> = import("./repository-write.js").RepositoryWrite<TEvent>;
|
|
28
|
+
export type Agent = import("./agent.js").Agent;
|
|
29
|
+
export type AgentStatus = import("./agent.js").AgentStatus;
|
|
30
|
+
export type AgentValue = import("./agent.js").AgentValue;
|
|
31
|
+
export type Graph = import("./graph.js").Graph;
|
|
32
|
+
export type NodeAppMemoryApp = import("./node-app-memory.js").NodeAppMemoryApp;
|
|
33
|
+
export type NodeAppBudgetState = import("./node-app-memory.js").NodeAppBudgetState;
|
|
34
|
+
export type NodeAppBudgetVerdict = import("./node-app-memory.js").NodeAppBudgetVerdict;
|
|
35
|
+
export type NodeAppDeviceMemory = import("./node-app-memory.js").NodeAppDeviceMemory;
|
|
36
|
+
export type NodeAppGovernorRow = import("./node-app-memory.js").NodeAppGovernorRow;
|
|
37
|
+
export type NodeAppHeapObjectTypeCount = import("./node-app-memory.js").NodeAppHeapObjectTypeCount;
|
|
38
|
+
export type NodeAppHeapSnapshot = import("./node-app-memory.js").NodeAppHeapSnapshot;
|
|
39
|
+
export type NodeAppHeapSnapshotState = import("./node-app-memory.js").NodeAppHeapSnapshotState;
|
|
40
|
+
export type NodeAppHeapSnapshotSummary = import("./node-app-memory.js").NodeAppHeapSnapshotSummary;
|
|
41
|
+
export type NodeAppLaneKind = import("./node-app-memory.js").NodeAppLaneKind;
|
|
42
|
+
export type NodeAppLifecycleMemoryObservation = import("./node-app-memory.js").NodeAppLifecycleMemoryObservation;
|
|
43
|
+
export type NodeAppMemoryActivityRollup = import("./node-app-memory.js").NodeAppMemoryActivityRollup;
|
|
44
|
+
export type NodeAppMemoryAttribution = import("./node-app-memory.js").NodeAppMemoryAttribution;
|
|
45
|
+
export type NodeAppMemoryAvailability = import("./node-app-memory.js").NodeAppMemoryAvailability;
|
|
46
|
+
export type NodeAppMemoryBudgetBasis = import("./node-app-memory.js").NodeAppMemoryBudgetBasis;
|
|
47
|
+
export type NodeAppMemoryCapabilityCallCount = import("./node-app-memory.js").NodeAppMemoryCapabilityCallCount;
|
|
48
|
+
export type NodeAppMemoryDownload = import("./node-app-memory.js").NodeAppMemoryDownload;
|
|
49
|
+
export type NodeAppMemoryOverview = import("./node-app-memory.js").NodeAppMemoryOverview;
|
|
50
|
+
export type NodeAppMemoryOverviewApp = import("./node-app-memory.js").NodeAppMemoryOverviewApp;
|
|
51
|
+
export type NodeAppMemoryReading = import("./node-app-memory.js").NodeAppMemoryReading;
|
|
52
|
+
export type NodeAppMemoryRepository = import("./node-app-memory.js").NodeAppMemoryRepository;
|
|
53
|
+
export type NodeAppMemorySnapshot = import("./node-app-memory.js").NodeAppMemorySnapshot;
|
|
54
|
+
export type NodeAppMemorySource = import("./node-app-memory.js").NodeAppMemorySource;
|
|
55
|
+
export type NodeAppMemoryTrend = import("./node-app-memory.js").NodeAppMemoryTrend;
|
|
56
|
+
export type NodeAppMemoryTrendVerdict = import("./node-app-memory.js").NodeAppMemoryTrendVerdict;
|
|
57
|
+
export type NodeAppMemoryUnavailableReason = import("./node-app-memory.js").NodeAppMemoryUnavailableReason;
|
|
58
|
+
export type NodeAppPressureState = import("./node-app-memory.js").NodeAppPressureState;
|
|
59
|
+
export type NodeAppRuntimeMode = import("./node-app-memory.js").NodeAppRuntimeMode;
|
|
60
|
+
export type NodeAppTerminationReason = import("./node-app-memory.js").NodeAppTerminationReason;
|
|
61
|
+
export type GraphEdge = import("./graph.js").GraphEdge;
|
|
62
|
+
export type GraphNode = import("./graph.js").GraphNode;
|
|
63
|
+
export type GraphValue = import("./graph.js").GraphValue;
|
|
64
|
+
export type RevisionedSetting = import("./settings.js").RevisionedSetting;
|
|
65
|
+
export type SettingValue = import("./settings.js").SettingValue;
|
|
66
|
+
export type ResolveRevisionConflictCommand = import("./revisioned-commands.js").ResolveRevisionConflictCommand;
|
|
67
|
+
export type RevisionUpdateCommand<TValue extends JsonValue = import("./json.js").JsonValue> = import("./revisioned-commands.js").RevisionUpdateCommand<TValue>;
|
|
68
|
+
export type RevisionUpdateCommandName = import("./revisioned-commands.js").RevisionUpdateCommandName;
|
|
69
|
+
export type RevisionedCommandName = import("./revisioned-commands.js").RevisionedCommandName;
|
|
70
|
+
export type RevisionCommand<TValue extends JsonValue> = import("./revisioned.js").RevisionCommand<TValue>;
|
|
71
|
+
export type RevisionCommandResult<TValue> = import("./revisioned.js").RevisionCommandResult<TValue>;
|
|
72
|
+
export type RevisionConflict<TValue> = import("./revisioned.js").RevisionConflict<TValue>;
|
|
73
|
+
export type RevisionConflictPayload<TValue extends JsonValue> = import("./revisioned.js").RevisionConflictPayload<TValue>;
|
|
74
|
+
export type RevisionConflictRecord<TValue extends JsonValue> = import("./revisioned.js").RevisionConflictRecord<TValue>;
|
|
75
|
+
export type RevisionEntity<TValue> = import("./revisioned.js").RevisionEntity<TValue>;
|
|
76
|
+
export type RevisionIntent<TValue> = import("./revisioned.js").RevisionIntent<TValue>;
|
|
77
|
+
export type RevisionResolution = import("./revisioned.js").RevisionResolution;
|
|
78
|
+
export type RevisionedDomain = import("./revisioned.js").RevisionedDomain;
|
|
1
79
|
export { isDevicePublicIdentity, publicIdentityDiagnostic } from "./device-identity.js";
|
|
2
80
|
export { isDelegationActive, normalizeDelegation } from "./delegation.js";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export { OUTBOX_STATES, canonicalOutboxPayload, createOutboxIntent, fromPublicOutboxState, toPublicOutboxState, validateOutboxIntent, } from "./outbox.js";
|
|
6
|
-
export type { LegacyOutboxState, OutboxAuthority, OutboxEntry, OutboxIntent, OutboxIntentInput, OutboxIntentOptions, OutboxIntentState, OutboxLease, OutboxState, } from "./outbox.js";
|
|
7
|
-
export type { QueryDiff } from "./query-diff.js";
|
|
8
|
-
export type { RepositoryWrite } from "./repository-write.js";
|
|
81
|
+
export { APP_DATA_MAX_PAYLOAD_BYTES, assertAppDataPayload, compareAppDataRevision, isAppDataSyncResponse } from "./app-data.js";
|
|
82
|
+
export { OUTBOX_STATES, canonicalOutboxPayload, createOutboxIntent, fromPublicOutboxState, toPublicOutboxState, validateOutboxIntent } from "./outbox.js";
|
|
9
83
|
export { AGENT_STATUSES, parseAgentValue } from "./agent.js";
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export type { Graph, GraphEdge, GraphNode, GraphValue } from "./graph.js";
|
|
13
|
-
export type { RevisionedSetting, SettingValue } from "./settings.js";
|
|
14
|
-
export { REVISIONED_COMMAND_NAMES, createAgentUpdateCommand, createGraphUpdateCommand, createResolveRevisionConflictCommand, createRevisionedUpdateCommand, } from "./revisioned-commands.js";
|
|
15
|
-
export type { ResolveRevisionConflictCommand, RevisionUpdateCommand, RevisionUpdateCommandName, RevisionedCommandName, } from "./revisioned-commands.js";
|
|
16
|
-
export { REVISIONED_DOMAINS, } from "./revisioned.js";
|
|
17
|
-
export type { RevisionCommand, RevisionCommandResult, RevisionConflict, RevisionConflictPayload, RevisionConflictRecord, RevisionEntity, RevisionIntent, RevisionResolution, RevisionedDomain, } from "./revisioned.js";
|
|
84
|
+
export { isNodeAppBudgetState, isNodeAppLaneKind, isNodeAppMemoryAttribution, isNodeAppMemoryAvailability, isNodeAppMemoryBudgetBasis, isNodeAppMemorySource, isNodeAppMemoryTrendVerdict, isNodeAppMemoryUnavailableReason, isNodeAppPressureState, isNodeAppRuntimeMode, isNodeAppTerminationReason, NODE_APP_BUDGET_STATES, NODE_APP_LANE_KINDS, NODE_APP_MEMORY_ATTRIBUTIONS, NODE_APP_MEMORY_AVAILABILITIES, NODE_APP_MEMORY_BUDGET_BASES, NODE_APP_MEMORY_SOURCES, NODE_APP_MEMORY_TREND_VERDICTS, NODE_APP_MEMORY_UNAVAILABLE_REASONS, NODE_APP_PRESSURE_STATES, NODE_APP_RUNTIME_MODES, NODE_APP_TERMINATION_REASONS } from "./node-app-memory.js";
|
|
85
|
+
export { REVISIONED_COMMAND_NAMES, createAgentUpdateCommand, createGraphUpdateCommand, createResolveRevisionConflictCommand, createRevisionedUpdateCommand } from "./revisioned-commands.js";
|
|
18
86
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.js"],"names":[],"mappings":";;yBAGa,OAAO,WAAW,EAAE,UAAU;4BAG9B,OAAO,WAAW,EAAE,aAAa;wBAGjC,OAAO,WAAW,EAAE,SAAS;gCAG7B,OAAO,EACP,IAAI,IACJ,OAAO,4BAA4B,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;gCAGvE,OAAO,aAAa,EAAE,iBAAiB;kCAEtC,OAAO,eAAe,EAAE,mBAAmB;+BAC3C,OAAO,eAAe,EAAE,gBAAgB;0CACxC,OAAO,eAAe,EAAE,2BAA2B;qCACnD,OAAO,eAAe,EAAE,sBAAsB;sCAC9C,OAAO,eAAe,EAAE,uBAAuB;kCAC/C,OAAO,eAAe,EAAE,mBAAmB;gCAC3C,OAAO,eAAe,EAAE,iBAAiB;+BACzC,OAAO,eAAe,EAAE,gBAAgB;4BACxC,OAAO,eAAe,EAAE,aAAa;8BAEtC,OAAO,aAAa,EAAE,eAAe;0BAGrC,OAAO,aAAa,EAAE,WAAW;2BAGjC,OAAO,aAAa,EAAE,YAAY;gCAGlC,OAAO,aAAa,EAAE,iBAAiB;kCAGvC,OAAO,aAAa,EAAE,mBAAmB;gCAGzC,OAAO,aAAa,EAAE,iBAAiB;0BAGvC,OAAO,aAAa,EAAE,WAAW;0BAGjC,OAAO,aAAa,EAAE,WAAW;sBAGjC,IAAI,IACJ,OAAO,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC;0BAGzC,OAAO,oBAAoB,EAAE,WAAW;4BAG1B,MAAM,SAAnB,WAAY,IACb,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,OAAO,YAAY,EAAE,SAAS;wBAG9B,OAAO,YAAY,EAAE,SAAS;yBAG9B,OAAO,YAAY,EAAE,UAAU;gCAG/B,OAAO,eAAe,EAAE,iBAAiB;2BAGzC,OAAO,eAAe,EAAE,YAAY;6CAGpC,OAAO,0BAA0B,EAAE,8BAA8B;kCAGpD,MAAM,SAAlB,SAAU,oCACX,OAAO,0BAA0B,EAAE,qBAAqB,CAAC,MAAM,CAAC;wCAGhE,OAAO,0BAA0B,EAAE,yBAAyB;oCAG5D,OAAO,0BAA0B,EAAE,qBAAqB;4BAG5C,MAAM,SAAjB,SAAU,IACX,OAAO,iBAAiB,EAAE,eAAe,CAAC,MAAM,CAAC;kCAGjD,MAAM,IACN,OAAO,iBAAiB,EAAE,qBAAqB,CAAC,MAAM,CAAC;6BAGvD,MAAM,IACN,OAAO,iBAAiB,EAAE,gBAAgB,CAAC,MAAM,CAAC;oCAGtC,MAAM,SAAjB,SAAU,IACX,OAAO,iBAAiB,EAAE,uBAAuB,CAAC,MAAM,CAAC;mCAG7C,MAAM,SAAjB,SAAU,IACX,OAAO,iBAAiB,EAAE,sBAAsB,CAAC,MAAM,CAAC;2BAGxD,MAAM,IACN,OAAO,iBAAiB,EAAE,cAAc,CAAC,MAAM,CAAC;2BAGhD,MAAM,IACN,OAAO,iBAAiB,EAAE,cAAc,CAAC,MAAM,CAAC;iCAGhD,OAAO,iBAAiB,EAAE,kBAAkB;+BAG5C,OAAO,iBAAiB,EAAE,gBAAgB"}
|
package/dist/models/json.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type { RepositoryJsonPrimitive, RepositoryJsonValue } from "@econ-v1/ports";
|
|
1
|
+
export type RepositoryJsonPrimitive = import("@econ-v1/ports").RepositoryJsonPrimitive;
|
|
3
2
|
export type JsonPrimitive = RepositoryJsonPrimitive;
|
|
4
|
-
export type JsonValue =
|
|
5
|
-
export
|
|
3
|
+
export type JsonValue = JsonPrimitive | JsonArray | JsonObject;
|
|
4
|
+
export type JsonArray = JsonValue[];
|
|
5
|
+
export type JsonObject = {
|
|
6
6
|
readonly [key: string]: JsonValue;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/models/json.
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/models/json.js"],"names":[],"mappings":"sCAGa,OAAO,gBAAgB,EAAE,uBAAuB;4BAGhD,uBAAuB;wBAGvB,aAAa,GAAG,SAAS,GAAG,UAAU;wBAGtC,SAAS,EAAE;yBAGX;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAAE"}
|
package/dist/models/l402.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export interface L402Receipt {
|
|
1
|
+
export type L402Receipt = {
|
|
3
2
|
readonly amountMsat: number;
|
|
4
3
|
readonly paidAt: string;
|
|
5
4
|
readonly paymentHash?: string;
|
|
6
5
|
readonly resource: string;
|
|
7
6
|
readonly receiptId: string;
|
|
8
|
-
}
|
|
9
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type L402HistoryView = {
|
|
10
9
|
readonly freshness: "fresh" | "stale" | "unavailable";
|
|
11
10
|
readonly items: readonly L402Receipt[];
|
|
12
11
|
readonly observedAt?: string;
|
|
13
12
|
readonly staleAt?: string;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
//# sourceMappingURL=l402.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l402.d.ts","sourceRoot":"","sources":["../../src/models/l402.
|
|
1
|
+
{"version":3,"file":"l402.d.ts","sourceRoot":"","sources":["../../src/models/l402.js"],"names":[],"mappings":"0BAGa;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAAE;8BAG/I;IAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAAE"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export type KernelEventType = import("../events/index.js").KernelEventType;
|
|
2
|
+
export type QueryName = import("../events/index.js").QueryName;
|
|
3
|
+
export type DomainEvent = import("../events/index.js").DomainEvent;
|
|
4
|
+
/**
|
|
5
|
+
* `requiresDurableStorage` records whether `run()` reads the durable,
|
|
6
|
+
* OPFS-backed local SQLite cache. It defaults to `true` (storage-backed) when
|
|
7
|
+
* omitted, so queries are gated behind local-storage readiness unless their
|
|
8
|
+
* author deliberately establishes otherwise. Set it to `false` only when
|
|
9
|
+
* `run()` is provably independent of the local SQLite cache, such as in-memory
|
|
10
|
+
* state or a home-node round trip; those queries remain available in degraded
|
|
11
|
+
* mode when a browser cannot provide OPFS.
|
|
12
|
+
*/
|
|
13
|
+
export type LiveQueryDefinition<TParams, TRow> = {
|
|
3
14
|
readonly invalidateOn: readonly KernelEventType[];
|
|
15
|
+
readonly matchesInvalidation?: (event: DomainEvent) => boolean;
|
|
4
16
|
readonly name: QueryName;
|
|
5
|
-
/**
|
|
6
|
-
* Whether `run()` reads the durable, OPFS-backed local SQLite cache.
|
|
7
|
-
*
|
|
8
|
-
* Defaults to `true` (treated as storage-backed) when omitted, so a new query is
|
|
9
|
-
* gated behind local-storage readiness unless its author has deliberately established
|
|
10
|
-
* otherwise — the conservative direction, since serving a storage-backed query before
|
|
11
|
-
* the cache is ready would return silently-empty rows.
|
|
12
|
-
*
|
|
13
|
-
* Set to `false` ONLY when `run()` is provably independent of the local SQLite cache
|
|
14
|
-
* (in-memory state or a home-node HTTP round trip). Those queries stay available in
|
|
15
|
-
* the degraded mode a browser without OPFS forces — Safari Private Browsing being the
|
|
16
|
-
* motivating case (#1661) — instead of dead-ending the whole shell.
|
|
17
|
-
*/
|
|
18
17
|
readonly requiresDurableStorage?: boolean;
|
|
19
18
|
key(row: TRow): string;
|
|
20
19
|
run(params: TParams): Promise<readonly TRow[]>;
|
|
21
|
-
}
|
|
20
|
+
};
|
|
22
21
|
//# sourceMappingURL=live-query-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-query-definition.d.ts","sourceRoot":"","sources":["../../src/models/live-query-definition.
|
|
1
|
+
{"version":3,"file":"live-query-definition.d.ts","sourceRoot":"","sources":["../../src/models/live-query-definition.js"],"names":[],"mappings":"8BAGa,OAAO,oBAAoB,EAAE,eAAe;wBAG5C,OAAO,oBAAoB,EAAE,SAAS;0BAErC,OAAO,oBAAoB,EAAE,WAAW;;;;;;;;;;gCAUzC,OAAO,EACP,IAAI,IACJ;IACZ,QAAY,CAAC,YAAY,EAAE,SAAS,eAAe,EAAE,CAAC;IACtD,QAAY,CAAC,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;IACnE,QAAY,CAAC,IAAI,EAAE,SAAS,CAAC;IAC7B,QAAY,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAC1C,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {unknown} value
|
|
3
|
+
* @returns {value is NodeAppMemoryAvailability}
|
|
4
|
+
*/
|
|
5
|
+
export function isNodeAppMemoryAvailability(value: unknown): value is NodeAppMemoryAvailability;
|
|
6
|
+
/**
|
|
7
|
+
* @param {unknown} value
|
|
8
|
+
* @returns {value is NodeAppMemoryAttribution}
|
|
9
|
+
*/
|
|
10
|
+
export function isNodeAppMemoryAttribution(value: unknown): value is NodeAppMemoryAttribution;
|
|
11
|
+
/**
|
|
12
|
+
* @param {unknown} value
|
|
13
|
+
* @returns {value is NodeAppMemorySource}
|
|
14
|
+
*/
|
|
15
|
+
export function isNodeAppMemorySource(value: unknown): value is NodeAppMemorySource;
|
|
16
|
+
/**
|
|
17
|
+
* @param {unknown} value
|
|
18
|
+
* @returns {value is NodeAppMemoryUnavailableReason}
|
|
19
|
+
*/
|
|
20
|
+
export function isNodeAppMemoryUnavailableReason(value: unknown): value is NodeAppMemoryUnavailableReason;
|
|
21
|
+
/**
|
|
22
|
+
* @param {unknown} value
|
|
23
|
+
* @returns {value is NodeAppRuntimeMode}
|
|
24
|
+
*/
|
|
25
|
+
export function isNodeAppRuntimeMode(value: unknown): value is NodeAppRuntimeMode;
|
|
26
|
+
/** @param {unknown} value @returns {value is NodeAppMemoryBudgetBasis} */
|
|
27
|
+
export function isNodeAppMemoryBudgetBasis(value: unknown): value is NodeAppMemoryBudgetBasis;
|
|
28
|
+
/** @param {unknown} value @returns {value is NodeAppBudgetState} */
|
|
29
|
+
export function isNodeAppBudgetState(value: unknown): value is NodeAppBudgetState;
|
|
30
|
+
/** @param {unknown} value @returns {value is NodeAppMemoryTrendVerdict} */
|
|
31
|
+
export function isNodeAppMemoryTrendVerdict(value: unknown): value is NodeAppMemoryTrendVerdict;
|
|
32
|
+
/** @param {unknown} value @returns {value is NodeAppLaneKind} */
|
|
33
|
+
export function isNodeAppLaneKind(value: unknown): value is NodeAppLaneKind;
|
|
34
|
+
/** @param {unknown} value @returns {value is NodeAppTerminationReason} */
|
|
35
|
+
export function isNodeAppTerminationReason(value: unknown): value is NodeAppTerminationReason;
|
|
36
|
+
/** @param {unknown} value @returns {value is NodeAppPressureState} */
|
|
37
|
+
export function isNodeAppPressureState(value: unknown): value is NodeAppPressureState;
|
|
38
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryApp} NodeAppMemoryApp */
|
|
39
|
+
/** @typedef {import('@econ-v1/ports').NodeAppBudgetState} NodeAppBudgetState */
|
|
40
|
+
/** @typedef {import('@econ-v1/ports').NodeAppBudgetVerdict} NodeAppBudgetVerdict */
|
|
41
|
+
/** @typedef {import('@econ-v1/ports').NodeAppDeviceMemory} NodeAppDeviceMemory */
|
|
42
|
+
/** @typedef {import('@econ-v1/ports').NodeAppGovernorRow} NodeAppGovernorRow */
|
|
43
|
+
/** @typedef {import('@econ-v1/ports').NodeAppHeapObjectTypeCount} NodeAppHeapObjectTypeCount */
|
|
44
|
+
/** @typedef {import('@econ-v1/ports').NodeAppHeapSnapshot} NodeAppHeapSnapshot */
|
|
45
|
+
/** @typedef {import('@econ-v1/ports').NodeAppHeapSnapshotState} NodeAppHeapSnapshotState */
|
|
46
|
+
/** @typedef {import('@econ-v1/ports').NodeAppHeapSnapshotSummary} NodeAppHeapSnapshotSummary */
|
|
47
|
+
/** @typedef {import('@econ-v1/ports').NodeAppLaneKind} NodeAppLaneKind */
|
|
48
|
+
/** @typedef {import('@econ-v1/ports').NodeAppLifecycleMemoryObservation} NodeAppLifecycleMemoryObservation */
|
|
49
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryActivityRollup} NodeAppMemoryActivityRollup */
|
|
50
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryAttribution} NodeAppMemoryAttribution */
|
|
51
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryAvailability} NodeAppMemoryAvailability */
|
|
52
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryBudgetBasis} NodeAppMemoryBudgetBasis */
|
|
53
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryCapabilityCallCount} NodeAppMemoryCapabilityCallCount */
|
|
54
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryDownload} NodeAppMemoryDownload */
|
|
55
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryOverview} NodeAppMemoryOverview */
|
|
56
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryOverviewApp} NodeAppMemoryOverviewApp */
|
|
57
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryReading} NodeAppMemoryReading */
|
|
58
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryRepository} NodeAppMemoryRepository */
|
|
59
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemorySnapshot} NodeAppMemorySnapshot */
|
|
60
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemorySource} NodeAppMemorySource */
|
|
61
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryTrend} NodeAppMemoryTrend */
|
|
62
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryTrendVerdict} NodeAppMemoryTrendVerdict */
|
|
63
|
+
/** @typedef {import('@econ-v1/ports').NodeAppMemoryUnavailableReason} NodeAppMemoryUnavailableReason */
|
|
64
|
+
/** @typedef {import('@econ-v1/ports').NodeAppPressureState} NodeAppPressureState */
|
|
65
|
+
/** @typedef {import('@econ-v1/ports').NodeAppRuntimeMode} NodeAppRuntimeMode */
|
|
66
|
+
/** @typedef {import('@econ-v1/ports').NodeAppTerminationReason} NodeAppTerminationReason */
|
|
67
|
+
export const NODE_APP_MEMORY_AVAILABILITIES: string[];
|
|
68
|
+
export const NODE_APP_MEMORY_ATTRIBUTIONS: string[];
|
|
69
|
+
export const NODE_APP_MEMORY_SOURCES: string[];
|
|
70
|
+
export const NODE_APP_MEMORY_UNAVAILABLE_REASONS: string[];
|
|
71
|
+
export const NODE_APP_RUNTIME_MODES: string[];
|
|
72
|
+
export const NODE_APP_MEMORY_BUDGET_BASES: string[];
|
|
73
|
+
export const NODE_APP_MEMORY_TREND_VERDICTS: string[];
|
|
74
|
+
export const NODE_APP_BUDGET_STATES: string[];
|
|
75
|
+
export const NODE_APP_LANE_KINDS: string[];
|
|
76
|
+
export const NODE_APP_TERMINATION_REASONS: string[];
|
|
77
|
+
export const NODE_APP_PRESSURE_STATES: string[];
|
|
78
|
+
export type NodeAppMemoryApp = import("@econ-v1/ports").NodeAppMemoryApp;
|
|
79
|
+
export type NodeAppBudgetState = import("@econ-v1/ports").NodeAppBudgetState;
|
|
80
|
+
export type NodeAppBudgetVerdict = import("@econ-v1/ports").NodeAppBudgetVerdict;
|
|
81
|
+
export type NodeAppDeviceMemory = import("@econ-v1/ports").NodeAppDeviceMemory;
|
|
82
|
+
export type NodeAppGovernorRow = import("@econ-v1/ports").NodeAppGovernorRow;
|
|
83
|
+
export type NodeAppHeapObjectTypeCount = import("@econ-v1/ports").NodeAppHeapObjectTypeCount;
|
|
84
|
+
export type NodeAppHeapSnapshot = import("@econ-v1/ports").NodeAppHeapSnapshot;
|
|
85
|
+
export type NodeAppHeapSnapshotState = import("@econ-v1/ports").NodeAppHeapSnapshotState;
|
|
86
|
+
export type NodeAppHeapSnapshotSummary = import("@econ-v1/ports").NodeAppHeapSnapshotSummary;
|
|
87
|
+
export type NodeAppLaneKind = import("@econ-v1/ports").NodeAppLaneKind;
|
|
88
|
+
export type NodeAppLifecycleMemoryObservation = import("@econ-v1/ports").NodeAppLifecycleMemoryObservation;
|
|
89
|
+
export type NodeAppMemoryActivityRollup = import("@econ-v1/ports").NodeAppMemoryActivityRollup;
|
|
90
|
+
export type NodeAppMemoryAttribution = import("@econ-v1/ports").NodeAppMemoryAttribution;
|
|
91
|
+
export type NodeAppMemoryAvailability = import("@econ-v1/ports").NodeAppMemoryAvailability;
|
|
92
|
+
export type NodeAppMemoryBudgetBasis = import("@econ-v1/ports").NodeAppMemoryBudgetBasis;
|
|
93
|
+
export type NodeAppMemoryCapabilityCallCount = import("@econ-v1/ports").NodeAppMemoryCapabilityCallCount;
|
|
94
|
+
export type NodeAppMemoryDownload = import("@econ-v1/ports").NodeAppMemoryDownload;
|
|
95
|
+
export type NodeAppMemoryOverview = import("@econ-v1/ports").NodeAppMemoryOverview;
|
|
96
|
+
export type NodeAppMemoryOverviewApp = import("@econ-v1/ports").NodeAppMemoryOverviewApp;
|
|
97
|
+
export type NodeAppMemoryReading = import("@econ-v1/ports").NodeAppMemoryReading;
|
|
98
|
+
export type NodeAppMemoryRepository = import("@econ-v1/ports").NodeAppMemoryRepository;
|
|
99
|
+
export type NodeAppMemorySnapshot = import("@econ-v1/ports").NodeAppMemorySnapshot;
|
|
100
|
+
export type NodeAppMemorySource = import("@econ-v1/ports").NodeAppMemorySource;
|
|
101
|
+
export type NodeAppMemoryTrend = import("@econ-v1/ports").NodeAppMemoryTrend;
|
|
102
|
+
export type NodeAppMemoryTrendVerdict = import("@econ-v1/ports").NodeAppMemoryTrendVerdict;
|
|
103
|
+
export type NodeAppMemoryUnavailableReason = import("@econ-v1/ports").NodeAppMemoryUnavailableReason;
|
|
104
|
+
export type NodeAppPressureState = import("@econ-v1/ports").NodeAppPressureState;
|
|
105
|
+
export type NodeAppRuntimeMode = import("@econ-v1/ports").NodeAppRuntimeMode;
|
|
106
|
+
export type NodeAppTerminationReason = import("@econ-v1/ports").NodeAppTerminationReason;
|
|
107
|
+
//# sourceMappingURL=node-app-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-app-memory.d.ts","sourceRoot":"","sources":["../../src/models/node-app-memory.js"],"names":[],"mappings":"AAsEA;;;GAGG;AACH,mDAHW,OAAO,GACL,KAAK,IAAI,yBAAyB,CAI9C;AACD;;;GAGG;AACH,kDAHW,OAAO,GACL,KAAK,IAAI,wBAAwB,CAI7C;AACD;;;GAGG;AACH,6CAHW,OAAO,GACL,KAAK,IAAI,mBAAmB,CAIxC;AACD;;;GAGG;AACH,wDAHW,OAAO,GACL,KAAK,IAAI,8BAA8B,CAInD;AACD;;;GAGG;AACH,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gB,EAAE,0BAA0B;kCACnD,OAAO,gBAAgB,EAAE,mBAAmB;uCAC5C,OAAO,gBAAgB,EAAE,wBAAwB;yCACjD,OAAO,gBAAgB,EAAE,0BAA0B;8BACnD,OAAO,gBAAgB,EAAE,eAAe;gDACxC,OAAO,gBAAgB,EAAE,iCAAiC;0CAC1D,OAAO,gBAAgB,EAAE,2BAA2B;uCACpD,OAAO,gBAAgB,EAAE,wBAAwB;wCACjD,OAAO,gBAAgB,EAAE,yBAAyB;uCAClD,OAAO,gBAAgB,EAAE,wBAAwB;+CACjD,OAAO,gBAAgB,EAAE,gCAAgC;oCACzD,OAAO,gBAAgB,EAAE,qBAAqB;oCAC9C,OAAO,gBAAgB,EAAE,qBAAqB;uCAC9C,OAAO,gBAAgB,EAAE,wBAAwB;mCACjD,OAAO,gBAAgB,EAAE,oBAAoB;sCAC7C,OAAO,gBAAgB,EAAE,uBAAuB;oCAChD,OAAO,gBAAgB,EAAE,qBAAqB;kCAC9C,OAAO,gBAAgB,EAAE,mBAAmB;iCAC5C,OAAO,gBAAgB,EAAE,kBAAkB;wCAC3C,OAAO,gBAAgB,EAAE,yBAAyB;6CAClD,OAAO,gBAAgB,EAAE,8BAA8B;mCACvD,OAAO,gBAAgB,EAAE,oBAAoB;iCAC7C,OAAO,gBAAgB,EAAE,kBAAkB;uCAC3C,OAAO,gBAAgB,EAAE,wBAAwB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
export type JsonValue = import("./json.js").JsonValue;
|
|
2
2
|
export type OutboxIntentState = "acknowledged" | "failed" | "pending" | "replaying";
|
|
3
|
-
export
|
|
3
|
+
export type OutboxIntent = {
|
|
4
4
|
readonly domain: string;
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly idempotencyKey: string;
|
|
7
7
|
readonly payload: JsonValue;
|
|
8
8
|
readonly state: OutboxIntentState;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
//# sourceMappingURL=outbox-intent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox-intent.d.ts","sourceRoot":"","sources":["../../src/models/outbox-intent.
|
|
1
|
+
{"version":3,"file":"outbox-intent.d.ts","sourceRoot":"","sources":["../../src/models/outbox-intent.js"],"names":[],"mappings":"wBAGa,OAAO,WAAW,EAAE,SAAS;gCAG7B,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW;2BAGnD;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;CAAE"}
|
package/dist/models/outbox.d.ts
CHANGED
|
@@ -1,14 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {OutboxIntentInput} input
|
|
3
|
+
* @param {OutboxIntentOptions} [options]
|
|
4
|
+
* @returns {OutboxEntry}
|
|
5
|
+
*/
|
|
6
|
+
export function createOutboxIntent(input: OutboxIntentInput, options?: OutboxIntentOptions): OutboxEntry;
|
|
7
|
+
/**
|
|
8
|
+
* @param {unknown} value
|
|
9
|
+
* @returns {OutboxEntry}
|
|
10
|
+
*/
|
|
11
|
+
export function validateOutboxIntent(value: unknown): OutboxEntry;
|
|
12
|
+
/**
|
|
13
|
+
* @param {unknown} state
|
|
14
|
+
* @returns {OutboxState}
|
|
15
|
+
*/
|
|
16
|
+
export function fromPublicOutboxState(state: unknown): OutboxState;
|
|
17
|
+
/**
|
|
18
|
+
* @param {OutboxState} state
|
|
19
|
+
* @returns {Exclude<OutboxIntentState, OutboxState> | OutboxState}
|
|
20
|
+
*/
|
|
21
|
+
export function toPublicOutboxState(state: OutboxState): Exclude<OutboxIntentState, OutboxState> | OutboxState;
|
|
22
|
+
/**
|
|
23
|
+
* @param {JsonValue} value
|
|
24
|
+
* @returns {string}
|
|
25
|
+
*/
|
|
26
|
+
export function canonicalOutboxPayload(value: JsonValue): string;
|
|
27
|
+
/**
|
|
28
|
+
* @typedef {import("./json.js").JsonValue} JsonValue
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @typedef {(typeof OUTBOX_STATES)[number]} OutboxState
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* @typedef {"acknowledged" | "replaying"} LegacyOutboxState
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* @typedef {OutboxState | LegacyOutboxState} OutboxIntentState
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* @typedef {"authoritative" | "eventual"} OutboxAuthority
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* @typedef {{ readonly expiresAt: string; readonly owner: string; }} OutboxLease
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* @typedef {{ readonly authority?: OutboxAuthority; readonly attemptCount?: number; readonly conflictReason?: string; readonly createdAt?: string; readonly domain: string; readonly id: string; readonly idempotencyKey: string; readonly lease?: OutboxLease; readonly maxAttempts?: number; readonly payload: JsonValue; readonly state: OutboxIntentState; readonly terminalReason?: string; readonly updatedAt?: string; }} OutboxIntent
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* @typedef {Omit<OutboxIntent, "attemptCount" | "createdAt" | "maxAttempts" | "state" | "updatedAt"> & { readonly attemptCount?: number; readonly createdAt?: string; readonly maxAttempts?: number; readonly state?: OutboxIntentState; readonly updatedAt?: string; }} OutboxIntentInput
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @typedef {OutboxIntent & { readonly authority: OutboxAuthority; readonly attemptCount: number; readonly createdAt: string; readonly maxAttempts: number; readonly state: OutboxState; readonly updatedAt: string; }} OutboxEntry
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* @typedef {{ readonly maxAttempts?: number; readonly now?: string; }} OutboxIntentOptions
|
|
56
|
+
*/
|
|
57
|
+
/** @type {readonly ["pending", "inflight", "acked", "failed", "conflict"]} */
|
|
58
|
+
export const OUTBOX_STATES: readonly ["pending", "inflight", "acked", "failed", "conflict"];
|
|
59
|
+
export type JsonValue = import("./json.js").JsonValue;
|
|
3
60
|
export type OutboxState = (typeof OUTBOX_STATES)[number];
|
|
4
61
|
export type LegacyOutboxState = "acknowledged" | "replaying";
|
|
5
62
|
export type OutboxIntentState = OutboxState | LegacyOutboxState;
|
|
6
63
|
export type OutboxAuthority = "authoritative" | "eventual";
|
|
7
|
-
export
|
|
64
|
+
export type OutboxLease = {
|
|
8
65
|
readonly expiresAt: string;
|
|
9
66
|
readonly owner: string;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
67
|
+
};
|
|
68
|
+
export type OutboxIntent = {
|
|
12
69
|
readonly authority?: OutboxAuthority;
|
|
13
70
|
readonly attemptCount?: number;
|
|
14
71
|
readonly conflictReason?: string;
|
|
@@ -22,7 +79,7 @@ export interface OutboxIntent {
|
|
|
22
79
|
readonly state: OutboxIntentState;
|
|
23
80
|
readonly terminalReason?: string;
|
|
24
81
|
readonly updatedAt?: string;
|
|
25
|
-
}
|
|
82
|
+
};
|
|
26
83
|
export type OutboxIntentInput = Omit<OutboxIntent, "attemptCount" | "createdAt" | "maxAttempts" | "state" | "updatedAt"> & {
|
|
27
84
|
readonly attemptCount?: number;
|
|
28
85
|
readonly createdAt?: string;
|
|
@@ -30,21 +87,16 @@ export type OutboxIntentInput = Omit<OutboxIntent, "attemptCount" | "createdAt"
|
|
|
30
87
|
readonly state?: OutboxIntentState;
|
|
31
88
|
readonly updatedAt?: string;
|
|
32
89
|
};
|
|
33
|
-
export
|
|
90
|
+
export type OutboxEntry = OutboxIntent & {
|
|
34
91
|
readonly authority: OutboxAuthority;
|
|
35
92
|
readonly attemptCount: number;
|
|
36
93
|
readonly createdAt: string;
|
|
37
94
|
readonly maxAttempts: number;
|
|
38
95
|
readonly state: OutboxState;
|
|
39
96
|
readonly updatedAt: string;
|
|
40
|
-
}
|
|
41
|
-
export
|
|
97
|
+
};
|
|
98
|
+
export type OutboxIntentOptions = {
|
|
42
99
|
readonly maxAttempts?: number;
|
|
43
100
|
readonly now?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare function createOutboxIntent(input: OutboxIntentInput, options?: OutboxIntentOptions): OutboxEntry;
|
|
46
|
-
export declare function validateOutboxIntent(value: unknown): OutboxEntry;
|
|
47
|
-
export declare function fromPublicOutboxState(state: unknown): OutboxState;
|
|
48
|
-
export declare function toPublicOutboxState(state: OutboxState): Exclude<OutboxIntentState, OutboxState> | OutboxState;
|
|
49
|
-
export declare function canonicalOutboxPayload(value: JsonValue): string;
|
|
101
|
+
};
|
|
50
102
|
//# sourceMappingURL=outbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/models/outbox.
|
|
1
|
+
{"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/models/outbox.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,0CAJW,iBAAiB,YACjB,mBAAmB,GACjB,WAAW,CAWvB;AACD;;;GAGG;AACH,4CAHW,OAAO,GACL,WAAW,CAyCvB;AACD;;;GAGG;AACH,6CAHW,OAAO,GACL,WAAW,CAUvB;AACD;;;GAGG;AACH,2CAHW,WAAW,GACT,OAAO,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,WAAW,CAUjE;AACD;;;GAGG;AACH,8CAHW,SAAS,GACP,MAAM,CASlB;AAhID;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH;;GAEG;AACH,8EAA8E;AAC9E,4BADW,SAAS,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CACU;wBA9BvE,O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