@contractspec/lib.testing 1.50.0 → 1.51.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/contracts/src/capabilities/capabilities.d.ts +13 -1
- package/dist/contracts/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/contracts/src/capabilities/context.d.ts +1 -0
- package/dist/contracts/src/capabilities/guards.d.ts +4 -0
- package/dist/contracts/src/capabilities/index.d.ts +4 -1
- package/dist/contracts/src/capabilities/validation.d.ts +4 -0
- package/dist/contracts/src/events.d.ts +6 -0
- package/dist/contracts/src/events.d.ts.map +1 -1
- package/dist/contracts/src/features/install.d.ts +3 -3
- package/dist/contracts/src/features/types.d.ts +2 -2
- package/dist/contracts/src/index.d.ts +5 -4
- package/dist/contracts/src/install.d.ts +1 -1
- package/dist/contracts/src/integrations/openbanking/contracts/accounts.d.ts +1 -1
- package/dist/contracts/src/integrations/openbanking/contracts/balances.d.ts +1 -1
- package/dist/contracts/src/integrations/openbanking/contracts/transactions.d.ts +1 -1
- package/dist/contracts/src/integrations/operations.d.ts +1 -1
- package/dist/contracts/src/knowledge/operations.d.ts +1 -1
- package/dist/contracts/src/llm/exporters.d.ts +1 -1
- package/dist/contracts/src/operations/operation.d.ts +6 -0
- package/dist/contracts/src/operations/operation.d.ts.map +1 -1
- package/dist/contracts/src/policy/guards.d.ts +1 -0
- package/dist/contracts/src/policy/index.d.ts +3 -1
- package/dist/contracts/src/policy/spec.d.ts +1 -1
- package/dist/contracts/src/policy/validation.d.ts +3 -0
- package/dist/contracts/src/presentations/presentations.d.ts +1 -0
- package/dist/contracts/src/tests/spec.d.ts +1 -1
- package/dist/contracts/src/workflow/context.d.ts +2 -0
- package/dist/contracts/src/workflow/index.d.ts +3 -1
- package/dist/contracts/src/workflow/sla-monitor.d.ts +2 -0
- package/dist/contracts/src/workflow/validation.d.ts +2 -0
- package/package.json +5 -5
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import "../
|
|
1
|
+
import { VersionedSpecRef } from "../versioning/refs.js";
|
|
2
|
+
import "../ownership.js";
|
|
3
|
+
|
|
4
|
+
//#region ../contracts/src/capabilities/capabilities.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Reference to a capability spec.
|
|
8
|
+
* Uses key and version to identify a specific capability.
|
|
9
|
+
*/
|
|
10
|
+
type CapabilityRef = VersionedSpecRef;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CapabilityRef };
|
|
13
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","names":[],"sources":["../../../../../contracts/src/capabilities/capabilities.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAyDY,aAAA,GAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./capabilities.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnySchemaModel } from "../../schema/src/SchemaModel.js";
|
|
2
2
|
import "../../schema/src/index.js";
|
|
3
|
+
import { CapabilityRef } from "./capabilities/capabilities.js";
|
|
3
4
|
import { DocId } from "./docs/registry.js";
|
|
4
5
|
import { OwnerShipMeta } from "./ownership.js";
|
|
5
6
|
import "./registry.js";
|
|
@@ -26,6 +27,11 @@ interface EventSpecMeta extends Omit<OwnerShipMeta, 'docId'> {
|
|
|
26
27
|
interface EventSpec<T extends AnySchemaModel> {
|
|
27
28
|
/** Event metadata including key, version, and ownership. */
|
|
28
29
|
meta: EventSpecMeta;
|
|
30
|
+
/**
|
|
31
|
+
* Optional reference to the capability that provides this event.
|
|
32
|
+
* Used for bidirectional linking between capabilities and events.
|
|
33
|
+
*/
|
|
34
|
+
capability?: CapabilityRef;
|
|
29
35
|
/**
|
|
30
36
|
* JSON paths to PII fields that should be redacted in logs/exports.
|
|
31
37
|
* @example ['email', 'user.phone', 'billing.address']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../../../../contracts/src/events.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../../../contracts/src/events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;UAiDiB,aAAA,SAAsB,KAAK;;UAElC;;;;;;;;;;;UAYO,oBAAoB;;QAE7B;;;;;eAKO;;;;;;;WAOJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../presentations/presentations.js";
|
|
2
|
-
import "../capabilities/index.js";
|
|
3
2
|
import "../operations/registry.js";
|
|
3
|
+
import "../presentations/index.js";
|
|
4
|
+
import "../capabilities/index.js";
|
|
4
5
|
import "./types.js";
|
|
5
|
-
import "./registry.js";
|
|
6
|
-
import "../presentations/index.js";
|
|
6
|
+
import "./registry.js";
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import "../../schema/src/index.js";
|
|
2
|
+
import { OptionalVersionedSpecRef, VersionedSpecRef } from "./versioning/refs.js";
|
|
3
|
+
import { CapabilityRef } from "./capabilities/capabilities.js";
|
|
2
4
|
import { DocId } from "./docs/registry.js";
|
|
3
5
|
import "./docs/index.js";
|
|
4
6
|
import { Owner, OwnerShipMeta, OwnersEnum, Stability, StabilityEnum, Tag, TagsEnum } from "./ownership.js";
|
|
5
7
|
import "./registry-utils.js";
|
|
6
|
-
import { OptionalVersionedSpecRef, VersionedSpecRef } from "./versioning/refs.js";
|
|
7
8
|
import { PolicyRef } from "./policy/spec.js";
|
|
8
9
|
import "./telemetry/index.js";
|
|
9
|
-
import "./capabilities/index.js";
|
|
10
|
-
import "./experiments/spec.js";
|
|
11
10
|
import { ResourceRefDescriptor } from "./resources.js";
|
|
12
11
|
import { TestSpecRef } from "./tests/spec.js";
|
|
13
12
|
import { EmitDecl, EmitDeclInline, EmitDeclRef, ImplementationRef, ImplementationType, OpKind, OperationSpec, OperationSpecMeta, TelemetryTrigger } from "./operations/operation.js";
|
|
14
|
-
import "./install.js";
|
|
15
13
|
import "./operations/index.js";
|
|
14
|
+
import "./install.js";
|
|
16
15
|
import "./presentations/index.js";
|
|
16
|
+
import "./capabilities/index.js";
|
|
17
|
+
import "./experiments/spec.js";
|
|
17
18
|
import "./features/index.js";
|
|
18
19
|
import "./data-views/index.js";
|
|
19
20
|
import "./themes.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnySchemaModel } from "../../../schema/src/SchemaModel.js";
|
|
2
2
|
import "../../../schema/src/index.js";
|
|
3
|
+
import { CapabilityRef } from "../capabilities/capabilities.js";
|
|
3
4
|
import { OwnerShipMeta } from "../ownership.js";
|
|
4
5
|
import { PolicyRef } from "../policy/spec.js";
|
|
5
6
|
import { ResourceRefDescriptor } from "../resources.js";
|
|
@@ -70,6 +71,11 @@ interface OperationSpecMeta extends OwnerShipMeta {
|
|
|
70
71
|
*/
|
|
71
72
|
interface OperationSpec<Input extends AnySchemaModel, Output extends AnySchemaModel | ResourceRefDescriptor<boolean>, Events extends readonly EmitDecl[] | undefined = readonly EmitDecl[] | undefined> {
|
|
72
73
|
meta: OperationSpecMeta;
|
|
74
|
+
/**
|
|
75
|
+
* Optional reference to the capability that provides this operation.
|
|
76
|
+
* Used for bidirectional linking between capabilities and operations.
|
|
77
|
+
*/
|
|
78
|
+
capability?: CapabilityRef;
|
|
73
79
|
io: {
|
|
74
80
|
/** Zod schema for input body payload */
|
|
75
81
|
input: Input | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","names":[],"sources":["../../../../../contracts/src/operations/operation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operation.d.ts","names":[],"sources":["../../../../../contracts/src/operations/operation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAoBA;AAaA;AAUA;AAKiB,KAjCL,MAAA,GAiCmB,SAAA,GAAA,OAIpB;AAMX;AAGA;AASA;AAeiB,KAjEL,kBAAA,GAiEkB,SAAA,GAAA,WAAA,GAAA,MAAA,GAAA,MAAA,GAAA,SAAA,GAAA,MAAA,GAAA,OAAA;;;;;AAIf,UAxDE,iBAAA,CAwDF;EAGP;EAMO,IAAA,EAAA,MAAA;EAIJ;EAGE,IAAA,EApEL,kBAoEK;EAGD;EAGE,WAAA,CAAA,EAAA,MAAA;;AAKD,UAzEI,WAAA,CAyEJ;EAyBE,GAAA,EAjGR,SAiGQ,CAjGE,cAiGF,CAAA,CAAA,MAAA,CAAA;EAKA,IAAA,EAAA,MAAA;;AAcD,UAhHG,cAAA,CAgHH;EACA,GAAA,EAAA,MAAA;EAGJ,OAAA,EAAA,MAAA;EAsCU,IAAA,EAAA,MAAA;EAAiB,OAAA,EAtJ1B,cAsJ0B;;;;;;KAhJzB,QAAA,GAAW,cAAc;UAGpB,gBAAA;;;;;;;;;QAMT;;UAGS,iBAAA,SAA0B;QACnC;;;;;;;;;;;;;UAcS,4BACD,+BACC,iBAAiB,wDACR,kCACX;QAGP;;;;;eAMO;;;WAIJ;;aAGE;;YAGD;;cAGE;;YAGF;;aAEC;;;;;;;;;;;;;;;;;;;;;;;;eAyBE;;;;;eAKA;;;;;YAMH;;;;;;;cAQE;cACA;;UAGJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsCU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../operations/operation.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"description": "Contract-aware testing utilities and runners",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"test": "bun test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@contractspec/lib.schema": "1.
|
|
32
|
-
"@contractspec/lib.contracts": "1.
|
|
31
|
+
"@contractspec/lib.schema": "1.51.0",
|
|
32
|
+
"@contractspec/lib.contracts": "1.51.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@contractspec/tool.tsdown": "1.
|
|
36
|
-
"@contractspec/tool.typescript": "1.
|
|
35
|
+
"@contractspec/tool.tsdown": "1.51.0",
|
|
36
|
+
"@contractspec/tool.typescript": "1.51.0",
|
|
37
37
|
"tsdown": "^0.19.0",
|
|
38
38
|
"typescript": "^5.9.3"
|
|
39
39
|
},
|