@contractspec/example.kb-update-pipeline 1.57.0 → 1.59.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.
Files changed (88) hide show
  1. package/.turbo/turbo-build.log +58 -60
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +25 -0
  4. package/dist/browser/docs/index.js +43 -0
  5. package/dist/browser/docs/kb-update-pipeline.docblock.js +43 -0
  6. package/dist/browser/entities/index.js +56 -0
  7. package/dist/browser/entities/models.js +56 -0
  8. package/dist/browser/events.js +132 -0
  9. package/dist/browser/example.js +35 -0
  10. package/dist/browser/handlers/index.js +109 -0
  11. package/dist/browser/handlers/memory.handlers.js +109 -0
  12. package/dist/browser/index.js +646 -0
  13. package/dist/browser/kb-update-pipeline.feature.js +61 -0
  14. package/dist/browser/operations/index.js +199 -0
  15. package/dist/browser/operations/pipeline.js +199 -0
  16. package/dist/browser/presentations.js +120 -0
  17. package/dist/browser/tests/operations.test-spec.js +85 -0
  18. package/dist/docs/index.d.ts +2 -1
  19. package/dist/docs/index.d.ts.map +1 -0
  20. package/dist/docs/index.js +44 -1
  21. package/dist/docs/kb-update-pipeline.docblock.d.ts +2 -1
  22. package/dist/docs/kb-update-pipeline.docblock.d.ts.map +1 -0
  23. package/dist/docs/kb-update-pipeline.docblock.js +41 -28
  24. package/dist/entities/index.d.ts +2 -2
  25. package/dist/entities/index.d.ts.map +1 -0
  26. package/dist/entities/index.js +57 -3
  27. package/dist/entities/models.d.ts +53 -58
  28. package/dist/entities/models.d.ts.map +1 -1
  29. package/dist/entities/models.js +54 -71
  30. package/dist/events.d.ts +62 -68
  31. package/dist/events.d.ts.map +1 -1
  32. package/dist/events.js +122 -139
  33. package/dist/example.d.ts +2 -6
  34. package/dist/example.d.ts.map +1 -1
  35. package/dist/example.js +34 -47
  36. package/dist/handlers/index.d.ts +2 -2
  37. package/dist/handlers/index.d.ts.map +1 -0
  38. package/dist/handlers/index.js +110 -3
  39. package/dist/handlers/memory.handlers.d.ts +58 -60
  40. package/dist/handlers/memory.handlers.d.ts.map +1 -1
  41. package/dist/handlers/memory.handlers.js +104 -87
  42. package/dist/handlers/memory.handlers.test.d.ts +2 -0
  43. package/dist/handlers/memory.handlers.test.d.ts.map +1 -0
  44. package/dist/index.d.ts +14 -10
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +647 -12
  47. package/dist/kb-update-pipeline.feature.d.ts +1 -6
  48. package/dist/kb-update-pipeline.feature.d.ts.map +1 -1
  49. package/dist/kb-update-pipeline.feature.js +60 -140
  50. package/dist/node/docs/index.js +43 -0
  51. package/dist/node/docs/kb-update-pipeline.docblock.js +43 -0
  52. package/dist/node/entities/index.js +56 -0
  53. package/dist/node/entities/models.js +56 -0
  54. package/dist/node/events.js +132 -0
  55. package/dist/node/example.js +35 -0
  56. package/dist/node/handlers/index.js +109 -0
  57. package/dist/node/handlers/memory.handlers.js +109 -0
  58. package/dist/node/index.js +646 -0
  59. package/dist/node/kb-update-pipeline.feature.js +61 -0
  60. package/dist/node/operations/index.js +199 -0
  61. package/dist/node/operations/pipeline.js +199 -0
  62. package/dist/node/presentations.js +120 -0
  63. package/dist/node/tests/operations.test-spec.js +85 -0
  64. package/dist/operations/index.d.ts +2 -2
  65. package/dist/operations/index.d.ts.map +1 -0
  66. package/dist/operations/index.js +199 -2
  67. package/dist/operations/pipeline.d.ts +126 -132
  68. package/dist/operations/pipeline.d.ts.map +1 -1
  69. package/dist/operations/pipeline.js +189 -172
  70. package/dist/presentations.d.ts +3 -8
  71. package/dist/presentations.d.ts.map +1 -1
  72. package/dist/presentations.js +117 -67
  73. package/dist/tests/operations.test-spec.d.ts +3 -8
  74. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  75. package/dist/tests/operations.test-spec.js +82 -90
  76. package/package.json +157 -41
  77. package/tsdown.config.js +1 -2
  78. package/.turbo/turbo-build$colon$bundle.log +0 -60
  79. package/dist/docs/kb-update-pipeline.docblock.js.map +0 -1
  80. package/dist/entities/models.js.map +0 -1
  81. package/dist/events.js.map +0 -1
  82. package/dist/example.js.map +0 -1
  83. package/dist/handlers/memory.handlers.js.map +0 -1
  84. package/dist/kb-update-pipeline.feature.js.map +0 -1
  85. package/dist/operations/pipeline.js.map +0 -1
  86. package/dist/presentations.js.map +0 -1
  87. package/dist/tests/operations.test-spec.js.map +0 -1
  88. package/tsconfig.tsbuildinfo +0 -1
@@ -1,31 +1,44 @@
1
+ // @bun
2
+ // src/docs/kb-update-pipeline.docblock.ts
1
3
  import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
4
+ var docBlocks = [
5
+ {
6
+ id: "docs.examples.kb-update-pipeline.goal",
7
+ title: "KB Update Pipeline \u2014 Goal",
8
+ summary: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
9
+ kind: "goal",
10
+ visibility: "public",
11
+ route: "/docs/examples/kb-update-pipeline/goal",
12
+ tags: ["knowledge", "pipeline", "hitl", "audit"],
13
+ body: `## Why it matters
14
+ - Keeps humans as the verifiers (HITL) while automation does the busywork.
15
+ - Produces an auditable chain: source change -> diff -> proposal -> review -> publish.
2
16
 
3
- //#region src/docs/kb-update-pipeline.docblock.ts
4
- registerDocBlocks([{
5
- id: "docs.examples.kb-update-pipeline.goal",
6
- title: "KB Update Pipeline — Goal",
7
- summary: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
8
- kind: "goal",
9
- visibility: "public",
10
- route: "/docs/examples/kb-update-pipeline/goal",
11
- tags: [
12
- "knowledge",
13
- "pipeline",
14
- "hitl",
15
- "audit"
16
- ],
17
- body: `## Why it matters
18
- - Keeps humans as the verifiers (HITL) while automation does the busywork.\n- Produces an auditable chain: source change -> diff -> proposal -> review -> publish.\n\n## Guardrails\n- High-risk changes require expert approval.\n- Publishing fails if any included rule versions are not approved.\n- Review requests emit notifications/events.`
19
- }, {
20
- id: "docs.examples.kb-update-pipeline.reference",
21
- title: "KB Update Pipeline — Reference",
22
- summary: "Entities, contracts, and events for the KB update pipeline example.",
23
- kind: "reference",
24
- visibility: "public",
25
- route: "/docs/examples/kb-update-pipeline",
26
- tags: ["knowledge", "reference"],
27
- body: `## Contracts\n- kbPipeline.runWatch\n- kbPipeline.createReviewTask\n- kbPipeline.submitDecision\n- kbPipeline.publishIfReady\n\n## Events\n- kb.change.detected\n- kb.change.summarized\n- kb.patch.proposed\n- kb.review.requested\n- kb.review.decided`
28
- }]);
17
+ ## Guardrails
18
+ - High-risk changes require expert approval.
19
+ - Publishing fails if any included rule versions are not approved.
20
+ - Review requests emit notifications/events.`
21
+ },
22
+ {
23
+ id: "docs.examples.kb-update-pipeline.reference",
24
+ title: "KB Update Pipeline \u2014 Reference",
25
+ summary: "Entities, contracts, and events for the KB update pipeline example.",
26
+ kind: "reference",
27
+ visibility: "public",
28
+ route: "/docs/examples/kb-update-pipeline",
29
+ tags: ["knowledge", "reference"],
30
+ body: `## Contracts
31
+ - kbPipeline.runWatch
32
+ - kbPipeline.createReviewTask
33
+ - kbPipeline.submitDecision
34
+ - kbPipeline.publishIfReady
29
35
 
30
- //#endregion
31
- //# sourceMappingURL=kb-update-pipeline.docblock.js.map
36
+ ## Events
37
+ - kb.change.detected
38
+ - kb.change.summarized
39
+ - kb.patch.proposed
40
+ - kb.review.requested
41
+ - kb.review.decided`
42
+ }
43
+ ];
44
+ registerDocBlocks(docBlocks);
@@ -1,2 +1,2 @@
1
- import { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel } from "./models.js";
2
- export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
1
+ export * from './models';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,3 +1,57 @@
1
- import { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel } from "./models.js";
2
-
3
- export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
1
+ // @bun
2
+ // src/entities/models.ts
3
+ import {
4
+ ScalarTypeEnum,
5
+ defineEnum,
6
+ defineSchemaModel
7
+ } from "@contractspec/lib.schema";
8
+ var ChangeRiskLevelEnum = defineEnum("ChangeRiskLevel", [
9
+ "low",
10
+ "medium",
11
+ "high"
12
+ ]);
13
+ var ReviewAssignedRoleEnum = defineEnum("ReviewAssignedRole", [
14
+ "curator",
15
+ "expert"
16
+ ]);
17
+ var ReviewDecisionEnum = defineEnum("ReviewDecision", [
18
+ "approve",
19
+ "reject"
20
+ ]);
21
+ var ChangeCandidateModel = defineSchemaModel({
22
+ name: "ChangeCandidate",
23
+ description: "Candidate change detected in a source document.",
24
+ fields: {
25
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
26
+ sourceDocumentId: {
27
+ type: ScalarTypeEnum.String_unsecure(),
28
+ isOptional: false
29
+ },
30
+ detectedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
31
+ diffSummary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
32
+ riskLevel: { type: ChangeRiskLevelEnum, isOptional: false }
33
+ }
34
+ });
35
+ var ReviewTaskModel = defineSchemaModel({
36
+ name: "ReviewTask",
37
+ description: "Human verification task for a change candidate.",
38
+ fields: {
39
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
40
+ changeCandidateId: {
41
+ type: ScalarTypeEnum.String_unsecure(),
42
+ isOptional: false
43
+ },
44
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
45
+ assignedRole: { type: ReviewAssignedRoleEnum, isOptional: false },
46
+ decision: { type: ReviewDecisionEnum, isOptional: true },
47
+ decidedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
48
+ decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
49
+ }
50
+ });
51
+ export {
52
+ ReviewTaskModel,
53
+ ReviewDecisionEnum,
54
+ ReviewAssignedRoleEnum,
55
+ ChangeRiskLevelEnum,
56
+ ChangeCandidateModel
57
+ };
@@ -1,61 +1,56 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/entities/models.d.ts
4
- declare const ChangeRiskLevelEnum: _contractspec_lib_schema0.EnumType<[string, string, string]>;
5
- declare const ReviewAssignedRoleEnum: _contractspec_lib_schema0.EnumType<[string, string]>;
6
- declare const ReviewDecisionEnum: _contractspec_lib_schema0.EnumType<[string, string]>;
7
- declare const ChangeCandidateModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- sourceDocumentId: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- detectedAt: {
17
- type: _contractspec_lib_schema0.FieldType<Date, string>;
18
- isOptional: false;
19
- };
20
- diffSummary: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
22
- isOptional: false;
23
- };
24
- riskLevel: {
25
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
26
- isOptional: false;
27
- };
1
+ export declare const ChangeRiskLevelEnum: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
2
+ export declare const ReviewAssignedRoleEnum: import("@contractspec/lib.schema").EnumType<[string, string]>;
3
+ export declare const ReviewDecisionEnum: import("@contractspec/lib.schema").EnumType<[string, string]>;
4
+ export declare const ChangeCandidateModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ sourceDocumentId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ detectedAt: {
14
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
15
+ isOptional: false;
16
+ };
17
+ diffSummary: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ riskLevel: {
22
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
23
+ isOptional: false;
24
+ };
28
25
  }>;
29
- declare const ReviewTaskModel: _contractspec_lib_schema0.SchemaModel<{
30
- id: {
31
- type: _contractspec_lib_schema0.FieldType<string, string>;
32
- isOptional: false;
33
- };
34
- changeCandidateId: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- status: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- assignedRole: {
43
- type: _contractspec_lib_schema0.EnumType<[string, string]>;
44
- isOptional: false;
45
- };
46
- decision: {
47
- type: _contractspec_lib_schema0.EnumType<[string, string]>;
48
- isOptional: true;
49
- };
50
- decidedAt: {
51
- type: _contractspec_lib_schema0.FieldType<Date, string>;
52
- isOptional: true;
53
- };
54
- decidedBy: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: true;
57
- };
26
+ export declare const ReviewTaskModel: import("@contractspec/lib.schema").SchemaModel<{
27
+ id: {
28
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
29
+ isOptional: false;
30
+ };
31
+ changeCandidateId: {
32
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
33
+ isOptional: false;
34
+ };
35
+ status: {
36
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
37
+ isOptional: false;
38
+ };
39
+ assignedRole: {
40
+ type: import("@contractspec/lib.schema").EnumType<[string, string]>;
41
+ isOptional: false;
42
+ };
43
+ decision: {
44
+ type: import("@contractspec/lib.schema").EnumType<[string, string]>;
45
+ isOptional: true;
46
+ };
47
+ decidedAt: {
48
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
49
+ isOptional: true;
50
+ };
51
+ decidedBy: {
52
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
53
+ isOptional: true;
54
+ };
58
55
  }>;
59
- //#endregion
60
- export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
61
56
  //# sourceMappingURL=models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","names":[],"sources":["../../src/entities/models.ts"],"mappings":";;;cAMa,mBAAA,EAIX,yBAAA,CAJ8B,QAAA;AAAA,cAMnB,sBAAA,EAGX,yBAAA,CAHiC,QAAA;AAAA,cAKtB,kBAAA,EAGX,yBAAA,CAH6B,QAAA;AAAA,cAKlB,oBAAA,4BAAoB,WAAA;;UAa/B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAEW,eAAA,4BAAe,WAAA;;UAe1B,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/entities/models.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,uEAI9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,+DAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB,+DAG7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe1B,CAAC"}
@@ -1,74 +1,57 @@
1
- import { ScalarTypeEnum, defineEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
-
3
- //#region src/entities/models.ts
4
- const ChangeRiskLevelEnum = defineEnum("ChangeRiskLevel", [
5
- "low",
6
- "medium",
7
- "high"
1
+ // @bun
2
+ // src/entities/models.ts
3
+ import {
4
+ ScalarTypeEnum,
5
+ defineEnum,
6
+ defineSchemaModel
7
+ } from "@contractspec/lib.schema";
8
+ var ChangeRiskLevelEnum = defineEnum("ChangeRiskLevel", [
9
+ "low",
10
+ "medium",
11
+ "high"
8
12
  ]);
9
- const ReviewAssignedRoleEnum = defineEnum("ReviewAssignedRole", ["curator", "expert"]);
10
- const ReviewDecisionEnum = defineEnum("ReviewDecision", ["approve", "reject"]);
11
- const ChangeCandidateModel = defineSchemaModel({
12
- name: "ChangeCandidate",
13
- description: "Candidate change detected in a source document.",
14
- fields: {
15
- id: {
16
- type: ScalarTypeEnum.String_unsecure(),
17
- isOptional: false
18
- },
19
- sourceDocumentId: {
20
- type: ScalarTypeEnum.String_unsecure(),
21
- isOptional: false
22
- },
23
- detectedAt: {
24
- type: ScalarTypeEnum.DateTime(),
25
- isOptional: false
26
- },
27
- diffSummary: {
28
- type: ScalarTypeEnum.String_unsecure(),
29
- isOptional: false
30
- },
31
- riskLevel: {
32
- type: ChangeRiskLevelEnum,
33
- isOptional: false
34
- }
35
- }
13
+ var ReviewAssignedRoleEnum = defineEnum("ReviewAssignedRole", [
14
+ "curator",
15
+ "expert"
16
+ ]);
17
+ var ReviewDecisionEnum = defineEnum("ReviewDecision", [
18
+ "approve",
19
+ "reject"
20
+ ]);
21
+ var ChangeCandidateModel = defineSchemaModel({
22
+ name: "ChangeCandidate",
23
+ description: "Candidate change detected in a source document.",
24
+ fields: {
25
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
26
+ sourceDocumentId: {
27
+ type: ScalarTypeEnum.String_unsecure(),
28
+ isOptional: false
29
+ },
30
+ detectedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
31
+ diffSummary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
32
+ riskLevel: { type: ChangeRiskLevelEnum, isOptional: false }
33
+ }
36
34
  });
37
- const ReviewTaskModel = defineSchemaModel({
38
- name: "ReviewTask",
39
- description: "Human verification task for a change candidate.",
40
- fields: {
41
- id: {
42
- type: ScalarTypeEnum.String_unsecure(),
43
- isOptional: false
44
- },
45
- changeCandidateId: {
46
- type: ScalarTypeEnum.String_unsecure(),
47
- isOptional: false
48
- },
49
- status: {
50
- type: ScalarTypeEnum.String_unsecure(),
51
- isOptional: false
52
- },
53
- assignedRole: {
54
- type: ReviewAssignedRoleEnum,
55
- isOptional: false
56
- },
57
- decision: {
58
- type: ReviewDecisionEnum,
59
- isOptional: true
60
- },
61
- decidedAt: {
62
- type: ScalarTypeEnum.DateTime(),
63
- isOptional: true
64
- },
65
- decidedBy: {
66
- type: ScalarTypeEnum.String_unsecure(),
67
- isOptional: true
68
- }
69
- }
35
+ var ReviewTaskModel = defineSchemaModel({
36
+ name: "ReviewTask",
37
+ description: "Human verification task for a change candidate.",
38
+ fields: {
39
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
40
+ changeCandidateId: {
41
+ type: ScalarTypeEnum.String_unsecure(),
42
+ isOptional: false
43
+ },
44
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
45
+ assignedRole: { type: ReviewAssignedRoleEnum, isOptional: false },
46
+ decision: { type: ReviewDecisionEnum, isOptional: true },
47
+ decidedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
48
+ decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
49
+ }
70
50
  });
71
-
72
- //#endregion
73
- export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
74
- //# sourceMappingURL=models.js.map
51
+ export {
52
+ ReviewTaskModel,
53
+ ReviewDecisionEnum,
54
+ ReviewAssignedRoleEnum,
55
+ ChangeRiskLevelEnum,
56
+ ChangeCandidateModel
57
+ };
package/dist/events.d.ts CHANGED
@@ -1,74 +1,68 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
-
4
- //#region src/events.d.ts
5
- declare const KbChangeDetectedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
6
- changeCandidateId: {
7
- type: _contractspec_lib_schema0.FieldType<string, string>;
8
- isOptional: false;
9
- };
10
- sourceDocumentId: {
11
- type: _contractspec_lib_schema0.FieldType<string, string>;
12
- isOptional: false;
13
- };
14
- riskLevel: {
15
- type: _contractspec_lib_schema0.FieldType<string, string>;
16
- isOptional: false;
17
- };
1
+ export declare const KbChangeDetectedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
2
+ changeCandidateId: {
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
5
+ };
6
+ sourceDocumentId: {
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ riskLevel: {
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
13
+ };
18
14
  }>>;
19
- declare const KbChangeSummarizedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
20
- changeCandidateId: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
22
- isOptional: false;
23
- };
24
- summary: {
25
- type: _contractspec_lib_schema0.FieldType<string, string>;
26
- isOptional: false;
27
- };
28
- riskLevel: {
29
- type: _contractspec_lib_schema0.FieldType<string, string>;
30
- isOptional: false;
31
- };
15
+ export declare const KbChangeSummarizedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
16
+ changeCandidateId: {
17
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
18
+ isOptional: false;
19
+ };
20
+ summary: {
21
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ riskLevel: {
25
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
26
+ isOptional: false;
27
+ };
32
28
  }>>;
33
- declare const KbPatchProposedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
34
- changeCandidateId: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- proposedRuleVersionIds: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isArray: true;
41
- isOptional: false;
42
- };
29
+ export declare const KbPatchProposedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
30
+ changeCandidateId: {
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ proposedRuleVersionIds: {
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isArray: true;
37
+ isOptional: false;
38
+ };
43
39
  }>>;
44
- declare const KbReviewRequestedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
45
- reviewTaskId: {
46
- type: _contractspec_lib_schema0.FieldType<string, string>;
47
- isOptional: false;
48
- };
49
- changeCandidateId: {
50
- type: _contractspec_lib_schema0.FieldType<string, string>;
51
- isOptional: false;
52
- };
53
- assignedRole: {
54
- type: _contractspec_lib_schema0.FieldType<string, string>;
55
- isOptional: false;
56
- };
40
+ export declare const KbReviewRequestedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
41
+ reviewTaskId: {
42
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
43
+ isOptional: false;
44
+ };
45
+ changeCandidateId: {
46
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
47
+ isOptional: false;
48
+ };
49
+ assignedRole: {
50
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
51
+ isOptional: false;
52
+ };
57
53
  }>>;
58
- declare const KbReviewDecidedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
59
- reviewTaskId: {
60
- type: _contractspec_lib_schema0.FieldType<string, string>;
61
- isOptional: false;
62
- };
63
- decision: {
64
- type: _contractspec_lib_schema0.FieldType<string, string>;
65
- isOptional: false;
66
- };
67
- decidedBy: {
68
- type: _contractspec_lib_schema0.FieldType<string, string>;
69
- isOptional: false;
70
- };
54
+ export declare const KbReviewDecidedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
55
+ reviewTaskId: {
56
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
57
+ isOptional: false;
58
+ };
59
+ decision: {
60
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
61
+ isOptional: false;
62
+ };
63
+ decidedBy: {
64
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
65
+ isOptional: false;
66
+ };
71
67
  }>>;
72
- //#endregion
73
- export { KbChangeDetectedEvent, KbChangeSummarizedEvent, KbPatchProposedEvent, KbReviewDecidedEvent, KbReviewRequestedEvent };
74
68
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"mappings":";;;;cAuBa,qBAAA,EAAqB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUhC,yBAAA,CAAA,SAAA;;;;;;;;;;;;cAeW,uBAAA,EAAuB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUlC,yBAAA,CAAA,SAAA;;;;;;;;;;;;cAkBW,oBAAA,EAAoB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU/B,yBAAA,CAAA,SAAA;;;;;;;;;cAeW,sBAAA,EAAsB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUjC,yBAAA,CAAA,SAAA;;;;;;;;;;;;cAYW,oBAAA,EAAoB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU/B,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;GAUhC,CAAC;AAeH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;GAUlC,CAAC;AAkBH,eAAO,MAAM,oBAAoB;;;;;;;;;;GAU/B,CAAC;AAeH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;GAUjC,CAAC;AAYH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;GAU/B,CAAC"}